R4R
Right Place For Right Person TM
R4R JavaHibernateHibernate basicHibernate 3.0 basic
previous

Home

Next

Hibernate 3.0 basic

Introduction

  1. Features of Hibernate are
  2. Advantages Of Hibernate
  3. Disadvantages Of Hibernate

First Application In Hibernate

  1. First we create a hibernate.cfg.xml file:
  2. Write first java persistance class.
  3. Mapping the Emp Object to the Database Emp table
  4. SessionProvider is created for creating the object of session.
  5. main java class

Commonly used classes and interfaces

A simple program of select

  1. Create hibernate.hbm.xml file
  2. Create Emp.java class
  3. Create Emp.hbm.xml file
  4. Create Session provider class
  5. Create a main class (SelectTest.java)

Some Important Methods of Hibernates

ID Generator

  1. increment
  2. Sequence Generator

Hibernate Mapping

 Is-A Mapping

  1. Table Per Class Hierarchy
  2. Table Per Subclasses
  3. Table Per Class

Has-A Mapping

One-to-One Mapping

  1. Using Primary Key-Foreign Key Relation
  2. Same Primary Key Mapping
  3. Using Relation Table

One-to-Many Mapping

Many-To-Many Mapping

HQL (Hibernate Query Language)

  1. Step To Execute HQL queries Using Hibernate
  2. Syntax Of HQL Queries
  3. Simple Program Of Select in HQL
  4. Insert Program in HQL

Hibernate Caching 

  1. First Level Caching
  2. Second Level Cache
  3. Specification Of second Level Cache
  4. Program Of EHCache

Working With Collection In Hibernate

Struts Hibernate Connectivity

Servlet And Hibernate Connectivity

Registration Form Using Struts Hibernate

previous

Home

Next


Tolal:0 Click:
Show All Comments

Post Your Comments

Your Name:

Your Email ID :
Comments :
URL
  =* Enter SUM

New Updates

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R