Introduction to the new features of IBM WebSphere application Server V7.0 Feature Pack for Java Persistence API 2.0
Object-Relationship persistence is an important part of Java EE application development. The Java Persistence API (JPA) is the object-relational persistent Java EE Standard, introduced from Java EE 5. The latest JPA 2.0 (JSR-317) specification, part of the Java EE 6 standard, introduces a new object-relational persistence API, which is further expanded and upgraded based on JPA 1.0/1.2. The Apache OpenJPA is the industry-leading open source Java persistence framework. The JPA implementation of WebSphere application Server is based on Apache OpenJPA. The JPA 2.0 Feature Pack for WebSphere Application Server V7.0 is based on OpenJPA 2.0.0, provides IBM's implementation of the JPA 2.0 specification, and increases IBM's enhancements to enable it to work with WebSphere Ap Plication Server is better integrated. This article presents you with a systematic introduction to the new features of the JPA 2.0 Feature Pack in the WebSphere application Server V7.0.
Introduction
Object/Relationship persistence is a very important development requirement in many application development scenarios. Prior to JPA, a number of technical scenarios were emerging in the Java realm, designed to address data persistence, from the earliest serialization (serialization), JDBC, Relational object Mapping (ORM), Object Database (ODB), to ejb2.x, Java Data Object (JDO). These scenarios, which have their own limitations in addition to JDO, are a great way to overcome these limitations and to be a good choice in the persistence scenario. The comparison of JPA with other persistence technologies is in table 1.
Table 1. A comparison of JPA and other persistence technologies
|
Serialization of |
JDBC |
ORM |
ODB |
EJB2 |
JDO |
JPA |
Persisting JAVA Objects |
Is |
Whether |
Is |
Is |
Is |
Is |
Is |
Advanced Object-oriented alignment |
Is |
Whether |
Is |
Is |
Whether |
Is |
Is |
Transactional integrity |
Whether |
Is |
Is |
Is |
Is |
Is |
Is |
of concurrency |
Whether |
Is |
Is |
Is |
Is |
Is |
Is |
Large data sets |
Whether |
Is |
Is |
Is |
Is |
Is |
Is |
Existing patterns |
Whether |
Is |
Is |
Whether |
Is |
Is |
Is |
Relational or non-relational databases |
Whether |
Whether |
Whether |
Whether |
Is |
Is |
Whether |
Data query |
|
Is |
Is |
Is |
Is |
Is |
Is |
Strict standards/portability |
Is |
Whether |
Whether |
Whether |
Is |
Is |
Is |
of simplicity |
Is |
Is |
Is |
Is |
Whether |
Is |
Is |
JPA incorporates the advantages of each of the persistence technologies mentioned above. Its advantages are:
Simple and easy to use and simplify programming. Creating an entity through JPA is as simple as creating a serialization class. Compared with the entity beans for JDO and ejb2.x, JPA is not limited by existing complex specifications and is easy to use.
JPA supports querying capabilities for large datasets, data consistency, concurrency, and JDBC.
Like object relational software and object databases, JPA allows for the use of advanced object-oriented technologies such as inheritance.
It is important to note that JPA does not apply to all applications, but JPA is a good choice for most applications, compared to other persistence technologies.