Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
23Activity
0 of .
Results for:
No results containing your search query
P. 1
Hibernate Tutorial

Hibernate Tutorial

Ratings: (0)|Views: 1,547 |Likes:
Published by api-27399718

More info:

Published by: api-27399718 on Oct 15, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

HIBERNATE TUTORIAL
HIBERNATE - Introduction to Hibernate
Hibernate is an open source object/relational mapping tool for Java. Hibernate lets you develop persistent classes following
common Java idiom - including association, inheritance, polymorphism, composition and the Java collections framework.

Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data
types), but also provides data query and retrieval facilities and can significantly reduce development time otherwise spent with
manual data handling in SQL and JDBC.

Hibernates goal is to relieve the developer from 95 percent of common data persistence related programming tasks.

Hibernate is Free Software. The LGPL license is sufficiently flexible to allow the use of Hibernate in both open source and
commercial projects (see the LicenseFAQ for details). Hibernate is available for download at http://www.hibernate.org/. This
tutorial aims to provide insight into Hibernate version 3.0RC and its usage

Some of the main features of hibernate are listed below and we have tried to explain some of them in detail later in this tutorial.
Transparent persistence without byte code processing

Transparent persistence
JavaBeans style properties are persisted
No build-time source or byte code generation / processing
Support for extensive subset of Java collections API
Collection instance management
Extensible type system
Constraint transparency
Automatic Dirty Checking
Detached object support

Object-oriented query language

Powerful object-oriented query language
Full support for polymorphic queries
New Criteria queries
Native SQL queries

Object / Relational mappings

Three different O/R mapping strategies
Multiple-objects to single-row mapping
Polymorphic associations
Bidirectional associations
Association filtering
Collections of basic types
Indexed collections
Composite Collection Elements
Lifecycle objects

Automatic primary key generation

Multiple synthetic key generation strategies Support for application assigned identifiers Support for composite keys

Object/Relational mapping definition

XML mapping documents
Human-readable format
XDoclet support

HDLCA (Hibernate Dual-Layer Cache Architecture)

Thread safeness
Non-blocking data access
Session level cache
Optional second-level cache
Optional query cache
Works well with others

High performance
Lazy initialization
Hibernate
High level architecture of Hibernate can be described as shown in following illustration.

Hibernate makes use of persistent objects commonly called as POJO (POJO = "Plain Old Java Object".) along with XML mapping documents for persisting objects to the database layer. The term POJO refers to a normal Java objects that does not serve any other special role or implement any special interfaces of any of the Java frameworks (EJB, JDBC, DAO, JDO, etc...).

Rather than utilize byte code processing or code generation, Hibernate uses runtime reflection to determine the persistent
properties of a class. The objects to be persisted are defined in a mapping document, which serves to describe the persistent

Activity (23)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
alexisallmighty liked this
bhagyagaddam liked this
pkapildas liked this
Alok Sharma liked this
freddy6626 liked this
sateeshvenkat liked this
alprotech liked this
nick20_2005 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->