Eclipse/JPA Java EE Tutorial
This is the Eclipse version of the Java EE JPA tutorial. It demonstrates how to create and run a full Java EE 6 MVC (Model View Controller) web application in Eclipse - using GlassFish, ObjectDB and JPA.
The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form:
Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a
Guest entity object and all the
Guest entity objects are stored in an ObjectDB database.
For this tutorial you will need the following software:
- Java JDK (6.0 or above).
- Eclipse IDE for Java EE Developers.
- GlassFish Server 3.0.1 (or above).
- The last version of ObjectDB (just download and extract).
The tutorial was written for Eclipse 3.6.1 but it should work with other Eclipse versions as well (dialog boxes and menus might look slightly different but the code would be the same).
Note: ObjectDB 2.3.7_04 or later is required if Glassfish 3.1.2 (or later) is used.
The Tutorial Steps
This tutorial consists of the following steps: