Persistence

Persistence has been a standing issue with previous generations of EJB specifications. The POJO programming model of EJB 3.1 has defined a new standard for persistence and object/relational mapping and has ushered in the introduction of the new Java™ Persistence API (JPA).

Entity beans have been replaced by POJO Java classes known as entities. The POJO classes are annotated with JPA annotations that describe the metadata for object/relational mapping. Several default values make it possible to create an entity by simple introduction of the component defining annotation @Entity. The new entities (formerly entity beans) are persistent domain objects with unique identities. Entry states can now live beyond the lifetime of the application.

For more information about the JPA, see Developing JPA applications.


Feedback