This is a tutorial to show how to use Java Persistence API (JPA) in a many to one scenario.
The Java Persistence API (JPA), which is part of the Java Enterprise Edition 5 (Java EE 5) EJB 3.0 specification, greatly simplifies Java persistence and provides an object-relational mapping approach that lets you declaratively define how to map Java objects to relational database tables in a standard, portable way that works both inside a Java EE 5 application server and outside an EJB container in a Java Standard Edition 5 (Java SE 5) application. JPA can be used to map your hibernate beans to the proper relational database tables without having to use hibernate mapping xml files.
The completed project, including jars can be found here: Completed Project
