Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

OpenBooks is a Swing based sample (and perhaps, simple) application featuring some of the new features in JPA 2.0.
Image Removed This demonstration features usage of new JPA 2.0 features such as

  • Criteria Query
  • Compound, Derived identity
  • Orphan Delete
  • Persistent Domain Model Browsing etc.
Selecting and Purchasing Books

Image Added

Availability

The source code and build script for OpenBooks is available in OpenJPA SubVersion repository

OpenBooks comes with a an Ant script to build.

under openjpa-examples/openbooks

To access the source code

$ cd /demo
svn co https://svn.apache.org/repos/asf/openjpa/trunk/openjpa-examples/openbooksImage Modified cd /demo/openbooks
cat

Building

  • Follow the instruction as in index.html
Persistent Domain Model (as a Powerpoint Slide)

Image Added

Browsing the same domain model via Metamodel API

Image Added ant package deploy
cd /deploy
ant -f run.xml run