![]() | ![]() |
OpenBooks is a sample (and perhaps, simple) application featuring some of the new features in JPA 2.0. This demonstration features usage of new JPA 2.0 features such as
The sample application shows essential build and packaging steps for both as
OpenBooks demonstrates few useful practices in domain modeling such as composite persistent relations, isolating immutable state for better cache utilization, immutable relationship etc. Architecturally, OpenBooks uses a design pattern to enable the same persistence service be used inside and outside a managed environment. Such patterns vastly speeds up develop-test-debug cycle for persistence and object-relation mapping functionality outside a container. AvailabilityThe source code and build script for OpenBooks is available in OpenJPA SubVersion repository under openjpa-examples/openbooks To access the source code
Building
Here are few screen shots of OpenBooks running as a Swing Application. Selecting and Purchasing BooksPersistent Domain Model (as a Powerpoint Slide)Browsing the same domain model via Metamodel API |