Part 3. Transactional data processing

 

In part 3, you’ll load and store data with Hibernate and Java Persistence. You’ll be introduced to the programming interfaces, to writing transactional applications, and to how Hibernate can load data from the database most efficiently.

Starting with chapter 10, you’ll learn the most important strategies for interacting with entity instances in a JPA application. You’ll see the lifecycle of entity instances: how they become persistent, detached, and removed. This chapter is where you’ll get to know the most important interface in JPA: the EntityManager. Next, chapter 11 defines database and system transaction essentials and how to control concurrent access with Hibernate, JPA, and Spring. You’ll also see non-transactional data access. In chapter 12, we’ll go through lazy and eager loading, fetch plans, strategies, and profiles, and wrap up with optimizing SQL execution. Finally, chapter 13 covers cascading state transitions, listening to and intercepting events, auditing and versioning with Hibernate Envers, and filtering data dynamically.