Java Cookbook Recipe 20.16 - Persistence with JPA

Problem

You want to load and save data without all the low-level detail of JDBC.

Solution

Use JPA (Java Persistence API), the persistence layer of EJB3/Java EE 5.

Discussion

... details ...