Saturday, June 11, 2011

What is JPA

JPA means Java Persistence API & it is a framework used to manage the relational data in applications. JPA will allow programmers to change the traditional database approach by giving a newer way of accessing the database entities. 
in the normal database context, you will have a database created using mysql, sql or oracle & you gonna need to write queries to access the database entities & do whatever the transactions. but when the database is too large & the queries getting complex, the access will be time consuming & complex as well. So that developers needed a light weight method to access database objects in a faster way. Thats where the concept of JPA come in to play. 
Before JPA there were several persistence units such as  JDBC, ODB, JDO, etc. JPA combines all the best features of all & present in a sophisticated manner. Following are the comparison of JPA with others.

In JPA, the database objects are created & programmer access these objects not the database entities itself. As java is Object Oriented, this method is quite faster than traditional relational database approach. JPA will map the database entities to database objects so that you can access the data via the objects. There are many ORM methods such as openJPA, Hibernate, etc. 
To use JPA you need to import the package javax.persistence to your working environment. 





6 comments:

  1. Thank you Chandra for the comment

    ReplyDelete
  2. The article is so informative. This is more helpful.thanks for your information really good and very nice web design company in velachery

    ReplyDelete
  3. For Devops training in Bangalore visit:Devops training in Bangalore

    ReplyDelete
  4. Morning mother budget prevent condition. Sound instead son per television develop her. Miss light build. Though analysis watch special article leave.education

    ReplyDelete