Task overview: Storing and retrieving persistent data with the Java Persistence API (JPA)

The Java Persistence API (JPA) for the application server defines the management of persistence and object/relational mapping within Java Enterprise Edition (Java EE) and Java Standard Edition (Java SE) environments.

About this task

The Java Persistence API (JPA) represents a simplification of the persistence programming model. JPA functions within the Java EE specification for Enterprise Java Beans 3.0 requirements, managing persistence and object/relational mapping. The JPA specification defines the object/relational mapping within its own guidelines instead of relying on vendor-specific mapping implementations. These features make applications that use JPA easier to implement and manage.

In a nutshell, JPA combines the best features from previous persistence mechanisms such as Java Database Connectivity (JDBC) APIs, Object Relational Mapping (ORM) frameworks, and Java Data Objects (JDO). Creating entities under JPA is as simple as creating serializable classes. JPA supports the large data sets, data consistency, concurrent use, and query capabilities of JDBC. Like object-relational software and object databases, JPA allows the use of advanced object-oriented concepts such as inheritance. JPA avoids vendor lock-in because it does not rely on a strict specification like JDO and EJB 2.x entities.

The JPA implementation does not mandate that you migrate existing applications. Existing EJB 2.x Container Manager Persistence applications continue to execute without changes. JPA may not be ideal for every application, however, for many applications it provides a better alternative to other persistence implementations.

Use the topics listed below for detailed information about aspects of JPA:

Procedure

What to do next

WebSphere Application Server support for JPA

The implementation of Java Persistence API for the application server can be used on all platforms that are supported for the application server, including iSeries and z/OS. Java Persistence API for the application server functions with all databases supported in WebSphere Application Server. In addition to these, Java Persistence API for WebSphere Application Server can support databases that are supported by the OpenJPA implementation of JPA.
Important: Databases supported by OpenJPA but not supported by WebSphere Application Server have not been tested extensively by IBM and may contain unknown compatibility issues. For a list of supported databases, consult Appendix 2 of the OpenJPA reference section.

Additional information

Use the following links to obtain additional information about the Java specifications and OpenJPA. The information resides on both IBM and non-IBM Internet sites, whose sponsors control the technical accuracy of the information. Often, the information is not specific to this product but is useful all or in part for understanding the product. When possible, links are provided to technical papers and Redbooks that supplement the broad coverage of the release documentation with in-depth examinations of particular product areas.




In this information ...


Related reference

IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 31, 2013 2:56:59 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=tejb_introjpa
File name: tejb_introjpa.html