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. ...