A Am mp pe er rs sa an nd d A Ac ca ad de em my y

treeexcellentSoftware and s/w Development

Dec 13, 2013 (3 years and 6 months ago)

49 views







A
A
m
m
p
p
e
e
r
r
s
s
a
a
n
n
d
d


A
A
c
c
a
a
d
d
e
e
m
m
y
y

#7/6, Swamiyar Garden Street, As
hok Nagar, Chennai


83 Phone:
+91 9600

111

210

www.ampersandacademy.com

|
info@ampersandacademy.com



JAVA HIBERNATE
4.3

Duration:
30

H
ours

|

15 Weekdays @ 2
H
ours/Day
| 5 Weekends @ 4 Hours/
Day

Hibernate is an object
-
relational mapping (ORM) library for the Java language, providing a framework for
mapping an object
-
oriented domain model to a traditional r
elational database. Hibernate solves object
-
relational impedance mismatch problems by replacing direct persistence
-
related database accesses with
high
-
level object handling functions.

Hibernate is free software that is distributed under the GNU Lesser
Gene
ral Public License.


Hibernate's primary feature is mapping from Java classes to database tables (and from Java data types to
SQL data types). Hibernate also provides data query and retrieval facilities. It generates SQL calls and
relieves the developer fr
om manual result set handling and object conversion. Applications using
Hibernate are portable to supported SQL databases with little performance overhead

Mapping

Mapping Java classes to database tables is accomplished through the configuration of an XML f
ile or by
using Java Annotations. When using an XML file, Hibernate can generate skeletal source code for the
persistence classes. This is unnecessary when annotations are used. Hibernate can use the XML file or the
annotations to maintain the database sch
ema.

Facilities to arrange one
-
to
-
many and many
-
to
-
many relationships between classes are provided. In
addition to managing associations between objects, Hibernate can also manage reflexive associations
where an object has a one
-
to
-
many relationship with o
ther instances of its own type.

Persistence

Hibernate provides transparent persistence for Plain Old Java Objects (POJOs). The only strict requirement
for a persistent class is a no
-
argument constructor, not necessarily public. Proper behavior in some
appl
ications also requires special attention to the equals() and hashCode() methods.[1]

Collections of data objects are typically stored in Java collection objects such as Set and List. Java generics,
introduced in Java 5, are supported. Hibernate can be confi
gured to lazy load associated collections. Lazy
loading is the default as of Hibernate 3.

Related objects can be configured to cascade operations from one to the other. For example, a parent
Album object can be configured to cascade its save and/or delete
operation to its child Track objects. This
can reduce development time and ensure referential integrity. A dirty checking feature avoids
unnecessary database write actions by performing SQL updates only on the modified fields of persistent
objects.










A
A
m
m
p
p
e
e
r
r
s
s
a
a
n
n
d
d


A
A
c
c
a
a
d
d
e
e
m
m
y
y

#7/6, Swamiyar Garden Street, As
hok Nagar, Chennai


83 Phone:
+91 9600

111

210

www.ampersandacademy.com

|
info@ampersandacademy.com



COUR
SE CURRICULUM

Introduction to hibernate

Evolution of ORM

Basics of Hibernate



HB Architecture




Understanding First HB application


Hibernate with IDE




HB in Eclipse

Hibernate Application




HB with annotation




HB Web application




HB Generator classes




HB Dialects


Hibernate Logging




HB with Log4j 1



HB with L
og4j 2


Inheritance Mapping




Table Per Hierarchy



TPH using Annotation



Table Per Concrete




TPC using Annotation




Table Per Subclass




TPS using Annotation


Collection Mapping




Mapping List




One
-
to
-
many by List



OTM Annotation




Mapping Bag




One
-
to
-
many by
Bag




Mapping Set



One
-
to
-
many by Set




Mapping Map




Many
-
to
-
many by Map



Bidirectional



Lazy Collecti
on


Component Mapping


Hibernate Association (Table Relationship)



One to one



One to many



Many to many

Hibernate Connection Pool



Cp30



Dbcp

Hibernate Query Language (HQL)

Hibernate Criteria

Hibernate

Native SQL

Hibernate Named Query

Hibernate Transaction

Hibernate Advance Technique



Hibernate data filter



Hibernate interceptor

Hibernate Performance



Dynamic insert



Dynamic update



Mutation and fetching

Integrate Hibernate with Other Frameworks



Spring



Sruts2