image

CHAPTER12

Modern Memories: The Java Persistence API

The Java Persistence API enables applications to extend the life of regular Java objects by persisting them in a relational database.

As we saw in the JDBC APIs, much of the work of a JDBC application is concerned with formulating the correct SQL statements that will write an application’s data objects into a relational database, manage them there, and reconstruct application-level data objects by interpreting the generic ResultSet objects that represent the result of a data query against the database.

The Java Persistence API (JPA) provides a very convenient shortcut to some of these steps. ...

Get Java EE 7: The Big Picture 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.