Support for Java Persistence is available to Java EE and Java SE applications running on the Java EE 5 and Java EE 6 platforms. If you have a J2EE 1.4 application it is possible to use Java Persistence if the target container is running on the Java EE 5 or Java EE 6 platform. The container does not need to be a Java EE 5 container.
If your target server is not a Java EE 5 container, you can add support for Java Persistence functionality by adding the EclipseLink library to the project or the classpath of the container. The EclipseLink library contains the necessary libraries to support Java Persistence. The EclipseLink library is bundled with the IDE.
To add Java Persistence support to the project:
When you add the EclipseLink library to your project, the EclipseLink library will be packaged with the EAR or WAR file when you build the project.