March 2023
Intermediate to advanced
616 pages
17h 35m
English
This chapter covers
In this chapter, we’ll explore Hibernate’s solution for the fundamental ORM problem of navigation, as introduced in section 1.2.5: the difference in how you access data in Java code and within a relational database. We’ll demonstrate how to retrieve data from the database and how to optimize this loading.
Hibernate provides the following ways to get data out of the database and into memory:
We can retrieve an entity instance by identifier. This is the most convenient method when the unique identifier value of an entity instance is known, such as entityManager.find(Item.class, ...
Read now
Unlock full access