What is JPA?



What is JPA?


  • JPA stands java persistence api is a collection of classes and methods used to persistently store vast amounts of data in a database. JPA is provided by Oracle Corporation.
In JPA -

1)J stands for JAVA

2) P stands for Persistence

3) A stands for API

“The Java Persistence API is a Java application programming interface specification that describes the management of relational data in applications using Java Platform, Standard Edition and Java Platform, Enterprise Edition”. Wiki

  • JPA - Being the standard for ORM, it lets you map the database tables and relations between them to the Java objects using XML and annotations. This let's you do CRUD operations magically by using methods provided by the ORM framework. One such ORM implementation of JPA is Hibernate.
  • It is an advanced topic jdbc of It is used for accessing, persisting, and managing data between Java objects / classes and a relational database.

Comments