Saturday, May 12, 2012

What is Java Persistence API (JPA)

The JPA (Java Persistence API) is a Java programming language framework for managing the relational data in java applications using Java SE (Java Platform Standard Edition) and Java EE (Java Platform Enterprise Edition). JPA is standard persistence API for Java. JPA used the best ideas from persistence technologies like Hibernate, TopLink and JDO. JPA simplifies the Java EE Web applications development and Java SE desktop applications development using data persistence new stable features.

May Java developers ask a question about JPA that  "Why JPA? Why do I need to know how to use this API when object-relational mapping tools like Hibernate and Toplink are already available?"

The answer to this question is that JPA is not a new persistence technology rather it is build on the best ideas from existing persistence technologies like TopLink, Hibernate and JDO Java Data Object. In the result, JPA is a standardized specification that helps to build a persistence layer in java applications that is independent of any particular persistence provider.

JPA provides Java developers with an object / relational mapping facility for managing relational data in their Java desktop applications and Java EE web applications. JPA, Java Persistence consists of four areas which are mentioned below
  • The Java Persistence API
  • The query language
  • The Java Persistence Criteria API
  • Object / relational mapping metadata

There are following two methods in JPA for querying entities from database.
  1. Java Persistence query language (JPQL): It is a simple and string based language just like SQL used to query entities and their relationships.
  2. Criteria API: It is used to create type safe queries using Java programming language APIs to query entities and their relationships from database.

What is JPA, Java Persistance API. J2ee JPA, Java EE tutorial, Persistence technogies, Java Persistence, j2ee web applications development, Java web applications development using JPA, java web action, java webaction, javawebaction
For more information about JPA, JPA Coding, JPA Best Practice, how to use JPA in Java web applications development, see the below slides


  1. I’m very glad to found this website because; it carries awesome and actually good data in favor of readers.


  2. Thank you for another fantastic write-up. It is always great when you can not only be informed, but also entertained I’m sure you had fun writing this post.

  3. I was working and suddenly I visits your site frequently and recommended it to me to read also. The writing style is superior and the content is relevant. Thanks for the insight you provide the readers!
    facebook entrar
    facebook entrar iniciar sesion
    facebook en español descargar
    facebook entrar direto agora

  4. Health is one of the many aspect in our life that we should take good care because if we are sick , we became useless and unimportant. We loose hope and everything became stagnant. Visit my site for more information. Thanks.

  5. I am very happy to locate your website. I just wanted to thank you for the time you spent on this great article. I definitely enjoyed reading it and I have you bookmarked to check out new stuff you post.



Please enter relevant question and information.