Title: Samples # OpenJPA Examples This page provides samples for OpenJPA. For further information, the [documentation](documentation.html) provides comprehensive documentation on all aspects of configuring and using OpenJPA. A [template](sampletemplate.html) is provided to describe how to build, deploy and run the samples. The existing samples will be reformatted to fit the template. If you are creating new samples, please adhere to the template. For more information on using OpenJPA within a Java EE application server, please see the [Integration](integration.html) page for more details. * [Open JPA Basic Sample and tutorial](begin-using-openjpa---the-basics.html) * [OpenTrader - a transactional web application featuring how to integrate Google Web Toolkit and OpenJPA ](opentrader.html) * [OpenBooks - a end-to-end example featuring new JPA 2.0 features in JSE and JEE environments ](openbooks---featuring-jpa-2.0.html) * [Using Criteria API in DayTrader](using-criteria-api-in-daytrader.html) * [Bean Validation Primer - A simple example which demonstrates the use Bean Validation with OpenJPA](bean-validation-primer.html) ## OpenJPA ANT Examples These are some short (5 minutes) quick start guides for OpenJPA using the examples provided with the distribution. Most OpenJPA releases require Java SE 5, but see [Build and Runtime Dependencies](build-and-runtime-dependencies.html) for more details. * [Getting Started](getting-started.html) * [Embeddable samples](embeddable-samples.html) ## Other Examples ### Apache TomEE Examples * [Injection via @PersistenceContext](http://tomee.apache.org/examples-trunk/injection-of-entitymanager/README.html) * [JPA and Enums via @Enumerated](http://tomee.apache.org/examples-trunk/jpa-enumerated/README.html) * [JPA, UserTransaction and Rollback](http://tomee.apache.org/examples-trunk/transaction-rollback/README.html) All the above examples are standalone projects, contain unit tests and working maven pom.xml files. Examples are run with every build and release of [TomEE](http://tomee.apache.org). ### Apache Geronimo v2.1 Samples * [Bean Managed Persistence with JPA](http://cwiki.apache.org/GMOxDOC21/bean-managed-persistence-with-jpa.html) * [Container Managed Persistence with JPA](http://cwiki.apache.org/GMOxDOC21/container-managed-persistence-with-jpa.html) * [Working with JSF and JPA](http://cwiki.apache.org/GMOxDOC21/working-with-jsf-and-jpa.html) * [Using Java Persistence API in application client](http://cwiki.apache.org/GMOxDOC21/using-java-persistence-api-in-application-client.html) * [Apache DayTrader Sample](http://cwiki.apache.org/GMOxDOC20/daytrader.html)