Java Persistence with MyBatis 3

Getting started with the MYBatis framework is greatly simplified with this step-by-step guide that’s packed with practical exercises. Now you can quickly and confidently take your Java capabilities into the arena of data persistence.
Preview in Mapt

Java Persistence with MyBatis 3

K. Siva Prasad Reddy

1 customer reviews
Getting started with the MYBatis framework is greatly simplified with this step-by-step guide that’s packed with practical exercises. Now you can quickly and confidently take your Java capabilities into the arena of data persistence.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.50
RRP $14.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.50
$29.99
$29.99 p/m after trial
RRP $14.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Java Persistence with MyBatis 3 Book Cover
Java Persistence with MyBatis 3
$ 14.99
$ 10.50
Java Hibernate Cookbook Book Cover
Java Hibernate Cookbook
$ 35.99
$ 25.20
Buy 2 for $28.00
Save $22.98
Add to Cart

Book Details

ISBN 139781782166801
Paperback132 pages

Book Description

Storing and retrieving data to and from relational databases is a very common requirement, and is a crucial part of many applications. Even though Java provides a JDBC API for database access, it is not very effective and involves writing the boilerplate code again and again. Getting data out of a database, populating into Java objects, and persisting data from Java objects into a database using JDBC involves a lot of repetitive coding and is a very tedious process. MyBatis takes the simplest approach of leveraging the existing knowledge and power of Java and SQL yet provides powerful features to make data persistence implementation easy. Java Persistence with MyBatis 3 is a practical, hands-on guide that provides you with a number of clear step-by-step exercises, which will help you to understand how MyBatis works and how to use it for your real application needs. With MyBatis, you will learn how to use the MyBatis framework effectively through simple instructions. Java Persistence with MyBatis 3 will highlight the cumbersome process of data persistence using plain JDBC and will also show you how easy it is to implement the same using MyBatis. You will also take a deeper look into the implementation of MyBatis with XML and Annotation-based Mappers, and finally learn how to integrate MyBatis with a Spring framework. You will learn how to map Complex SQL query results to Java beans using XML and Annotation-based Mappers, including One-To-Many and Many-To-Many relationships. You will also learn how to use TypeAliases and Custom Type Handlers, and build dynamic queries using XML and SqlProvider annotations. It progresses to detailed instructions on integrating MyBatis with Spring and leveraging Spring’s Annotation-based transaction handling mechanism, which further simplifies the usage of MyBatis.With Java Persistence with MyBatis 3, you will learn how to use the MyBatis framework effectively through simple instructions.

Table of Contents

Chapter 1: Getting Started with MyBatis
What is MyBatis?
Why MyBatis?
Installing and configuring MyBatis
Sample domain model
Summary
Chapter 2: Bootstrapping MyBatis
Configuring MyBatis using XML
Configuring MyBatis using Java API
Customizing MyBatis logging
Summary
Chapter 3: SQL Mappers Using XML
Mapper XMLs and Mapper interfaces
Mapped statements
ResultMaps
Dynamic SQL
MyBatis recipes
Summary
Chapter 4: SQL Mappers Using Annotations
Mapper interfaces using annotations
Mapped statements
Result maps
Dynamic SQL
Summary
Chapter 5: Integration with Spring
Configuring MyBatis in a Spring application
Working with SqlSession
Working with mappers
Transaction management using Spring
Summary

What You Will Learn

Simplify database persistence layer implementationInstall and configure MyBatis using XML and Java APIMap One-To-Many and Many-To-Many results using XML and Annotated MappersUse TypeAliases and Custom Type HandlersHandle pagination and custom SQL ResultSet processingBuild Dynamic Queries using XML and SqlProvider annotationsUse Spring’s Annotation-based Transaction Handling with MyBatis

Authors

Table of Contents

Chapter 1: Getting Started with MyBatis
What is MyBatis?
Why MyBatis?
Installing and configuring MyBatis
Sample domain model
Summary
Chapter 2: Bootstrapping MyBatis
Configuring MyBatis using XML
Configuring MyBatis using Java API
Customizing MyBatis logging
Summary
Chapter 3: SQL Mappers Using XML
Mapper XMLs and Mapper interfaces
Mapped statements
ResultMaps
Dynamic SQL
MyBatis recipes
Summary
Chapter 4: SQL Mappers Using Annotations
Mapper interfaces using annotations
Mapped statements
Result maps
Dynamic SQL
Summary
Chapter 5: Integration with Spring
Configuring MyBatis in a Spring application
Working with SqlSession
Working with mappers
Transaction management using Spring
Summary

Book Details

ISBN 139781782166801
Paperback132 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Java Hibernate Cookbook Book Cover
Java Hibernate Cookbook
$ 35.99
$ 25.20
Programming Kotlin Book Cover
Programming Kotlin
$ 35.99
$ 25.20
Spring Web Services 2 Cookbook Book Cover
Spring Web Services 2 Cookbook
$ 29.99
$ 21.00
Raspberry Pi Blueprints Book Cover
Raspberry Pi Blueprints
$ 35.99
$ 25.20
Elasticsearch Indexing Book Cover
Elasticsearch Indexing
$ 23.99
$ 16.80
Instant Citrix Security How-to Book Cover
Instant Citrix Security How-to
$ 14.99
$ 10.50