Abstract

The Java Persistence API (JPA) is the evolution of a number of frameworks in Java to provide a simple database access layer for plain Java objects (and, transitively, Scala objects). JPA was developed as part of the Enterprise Java Beans 3 (EJB3) specification, with the goal of simplifying the persistence model. You can read more about the standard at http://java.sun.com/javaee/overview/faq/persistence.jsp.Prior versions of Enterprise Java had used the Container Managed Persistence (CMP) framework, which required many boilerplate artifacts in the form of interfaces and XML descriptors. As part of the overarching theme of EJB3 to simplify and use convention over configuration, JPA uses sensible defaults and annotations heavily, while allowing for targeted overrides of behavior via XML descriptors. JPA also does away with many of the interfaces used in CMP and provides a single javax. persistence. EntityManager (EM) class for all persistence operations. An additional benefit is that JPA was designed so that it could be used both inside and outside of the enterprise container, and several projects (Hibernate, TopLink, JPOX, etc.) provide stand-alone implementations of EntityManager.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.