Home Hibernate Examples Hibernate API

Ask Questions?

View Latest Questions


 
 

Hibernate API
Posted on: October 26, 2010 at 12:00 AM
Advertisement
Learn the important classes and interfaces of Hibernate API.

Hibernate API

In this section we will learn about important Hibernate API. Hibernate one of the best ORM tool to develop database driven applications in Java.

Hibernate provides API to perform CRUD operations on the persistence objects.

The CRUD stands for Create, Read, Update and Delete operations on the persistent objects or the entity classes.

The important classes and interfaces of Hibernate API are:

  • org.hibernate.cfg.Configuration - The object of org.hibernate.cfg.Configuration class is used to provide the configuration informaton such as database, url of database, user name, password etc. while creating the a SessionFactory instance.
     
  • org.hibernate.SessionFactory - Usually in one application there is one instance of SessionFactory and the application requests for a Session object from the SessionFactory.
     
  • org.hibernate.Session - The org.hibernate.Session object is the main runtime interface between a Java application and Hibernate. The org.hibernate.Session interface provides the methods to perform CRUD operations on the persistence objects.
  • org.hibernate.Transaction - The org.hibernate.Transaction interface is used for transaction and Concurrency control in the application.

Hibernate API is available online at http://ajava.org/online/hibernate3api/. Simply browse the link to get more information.

Read more at Hibernate Tutorial section.

Related Tags for Hibernate API:


DMCA.com