The Java Persistence API (JPA) is a lightweight Java persistence framework based on Plain Old Java Object (POJO). JPA provides an object relational mapping (ORM) standard in Java, using which Java objects may be mapped to relational databases. The object relational mapping in JPA is based on metadata annotations that were introduced in Java SE 5. JPA may be used to create, query, update, and delete database table rows using Java objects. JPA is included with the Java EE 5 platform and may also be used with Java SE 5. JPA supports a SQL-like query language for dynamic and static queries. JPA also supports pluggable third-party persistence providers, which implies that a EJB container that conforms to the Enterprise JavaBeans 3.0 JPA specification can be used with any JPA persistence provider that also conforms to the Enterprise JavaBeans 3.0 JPA specification. JPA is based on entities. An entity is a Java object with the following properties:
An entity can be made persistent...