10 Managing data
This chapter covers
- Examining the lifecycle and states of objects
- Working with the EntityManager interface
- Working with detached state
You now understand how ORM solves the static aspects of the object/relational mismatch. With what you know so far, you can create a mapping between Java classes and an SQL schema, solving the structural mismatch problem. As you’ll recall, the paradigm mismatch covers the problems of granularity, inheritance, identity, association, and data navigation. For a deeper review, take a look back at section 1.2.
Beyond that, though, an efficient application solution requires something more: you must investigate strategies for runtime data management. These strategies are crucial to the performance and ...
Get Java Persistence with Spring Data and Hibernate now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.