JEST in Action
Description of a Simple JEST-enabled Web Application
A sample is available to demonstrate JEST usage. You will find the example
in OpenJPA code repository under openjpa-examples/jest tree with its
source code and deployment descriptors WEB-INF/web.xml and
META-INF/persistence.xml. The example is a simple servlet
demo.SimpleApp that instantiates a persistent unit named estdemo
and populates a database with few sample records of two persistent entities
demo.Actor and demo.Movie.
Persistence Unit Initialization
The following code from demo.SimpleApp shows the initialization process at the servlet's init() method.