Frameworks| Hibernate| Struts| JSF| JavaFX| Ajax| Spring| DOJO| JDO| iBatis| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials

Latest Questions
Comments
 
Introduction to the Java Persistence API 
 

In this section, we are going to discuss about the Java Persistence API (JPA). It is a part of Java EE5 (Java Enterprise Edition 5) and EJB 3.0 (Enterprise Java Beans 3.0) specification.

 

Introduction to the Java Persistence API

                         

In this section, we are going to discuss about the Java Persistence API (JPA). It is a part of Java EE5 (Java Enterprise Edition 5) and EJB 3.0 (Enterprise Java Beans 3.0) specification. Java Persistence API provides simple POJO (Plain Old Java Object) class and standard OR mapping (Object Relational mapping). 

[POJO : It stands for Plain Old Java Object that is used for referring the Java objects. This is a very simple class that contains all normal java objects. It doesn't extend or implement specialized classes.]

To use JPA you must be configured the JPA behavior of your entities using annotations. The JPA behavior is managed by the JPA persistence The JPA provides the facility to Java developers for managing an object relational data in Java applications called an object/relational mapping. The most important feature of JPA is that it is an independent API and easily integrate with J2EE as well as J2SE applications.

The JPA also provides the facility to load and save the data into database table without using any SQL query. As like if you use the the persist() method then it executes the insert SQL and merge() method updates your records by update query. 

The javax.persistence:  This is the package that contains all classes, interfaces and annotations that makes up the JPA. 

Java Persistence can be used the following areas:

  1. To persist the Java object into database
  2. To query database
  3. To update the Java object into database
There are following JPA programming models:
  1. EntityManager API : It consists persist, update, retrieve, or remove objects from a database table.
  2. EntityManager API and object-relational mapping meta-data handles the database operations without writing JDBC or SQL query.
  3. JPA also provides the query language, for handling EJB querying language (known as JPQL). To retrieve objects without using SQL queries.

                           

» View all related tutorials
Related Tags: c mvc com framework diff struts io components vi component this frame if work learn ram ear e il section

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Training Courses
Tell A Friend
Your Friend Name
Software Solutions
Least Viewed
Most Rated
Recently Viewed
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.