Basic Java Persistence API Best Practices: Consider and Employ These Simple Approaches to Make Your Java Persistence API Applications More Maintainable
The Java Persistence API (JPA), which is part of the Enterprise JavaBeans (EJB) 3.0 spec and is now the standard API for persistence and object/relational mapping for the Java EE platform, provides several advantages to Java developers for data-binding purposes. First, it provides a common API for persistence in both the standard and enterprise Java worlds. Second, the JPA provides a standard API that can be used for multiple different data stores. Third, JPA provides object-relational mapping technology that can be applied in the same manner to these various contexts (standard Java, enterprise Java, and various databases). This paper provides an overview of how to fully enjoy these advantages of the Java Persistence API.