+

Search Tips   |   Advanced Search

Assembling a JPA application in a Java EE environment

You have developed and configured the applications to work with the Java Persistence API (JPA). Now we need to package the JPA applications for the environment.

Package the application. There are several packaging options for an application that uses JPA in a Java EE environment. Choose the packaging option that best suits the JPA usage and configuration within the modules of the application. These are some of the most common packaging options. For a definitive list of packaging options, see the Java Persistence API specification.

IBM Optimâ„¢ PureQuery Runtime, add the persistence_unit_name.pdqxml file to the JPA application JAR file. The files are located in same META-INF directory where the persistence.xml file is located. These persistence files were created during the development task. See the topic, Developing JPA applications for a Java EE environment for more information.


What to do next

For more information about the commands, classes or other OpenJPA information, refer to the Apache OpenJPA User Guide.


Related information:

Apache OpenJPA User Guide: JPA
Apache OpenJPA User Guide: JPA Criteria
Apache OpenJPA User Guide