JPA architecture
One of the key aspects of the JPA is the entity manager API, which is responsible for providing Create, Read, Update, and Delete (CRUD) functionality. These are the operations that we can perform on an object that we want to persist on to the database.
Beyond this, one of the most important concepts in the persistence tier is queries. We need rich query capability at the database layer. JPA allows us to create queries in a number of different ways. One of these is Java Persistence Query Language (JPQL), which we can think of as an object-oriented version of Structured Query Language (SQL). It is just as powerful, compact, and expressive as SQL.
Another option is criteria queries. These are a bit different to JPQL. For criteria ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access