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
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Hibernate Reference

Hibernate Reference

Ratings: (0)|Views: 0|Likes:
Published by Masinde Andrew

More info:

Published by: Masinde Andrew on Jan 28, 2012
Copyright:Attribution Non-commercial

Availability:

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

01/28/2012

pdf

text

original

 
HIBERNATE - RelationalPersistence for Idiomatic Java
1
Hibernate ReferenceDocumentation
3.5.6-Final
by Gavin King, Christian Bauer, Max Rydahl Andersen, Emmanuel Bernard, and Steve Ebersoleand thanks to James Cobb (Graphic Design) and Cheyenne Weaver (Graphic Design)
 
iiiPreface ............................................................................................................................. xi
1. Tutorial
........................................................................................................................ 11.1. Part 1 - The first Hibernate Application ................................................................ 11.1.1. Setup ...................................................................................................... 11.1.2. The first class .......................................................................................... 31.1.3. The mapping file ...................................................................................... 41.1.4. Hibernate configuration ............................................................................. 71.1.5. Building with Maven ................................................................................. 91.1.6. Startupand helpers .................................................................................. 91.1.7. Loading and storing objects .................................................................... 101.2. Part 2 - Mapping associations ........................................................................... 131.2.1. Mapping the Person class ...................................................................... 131.2.2. A unidirectional Set-based association ..................................................... 141.2.3. Working the association .......................................................................... 151.2.4. Collection of values ................................................................................ 171.2.5. Bi-directional associations ....................................................................... 191.2.6. Working bi-directional links ..................................................................... 191.3. Part 3 - The EventManager web application ....................................................... 201.3.1. Writingthe basic servlet ......................................................................... 201.3.2. Processing and rendering ....................................................................... 221.3.3. Deploying and testing ............................................................................. 231.4. Summary.......................................................................................................... 24
2. Architecture
............................................................................................................... 252.1. Overview .......................................................................................................... 252.2. Instance states ................................................................................................. 282.3. JMX Integration ................................................................................................ 282.4. JCA Support ..................................................................................................... 292.5. Contextual sessions .......................................................................................... 29
3. Configuration
............................................................................................................. 313.1. Programmatic configuration ............................................................................... 313.2. Obtaining a SessionFactory ............................................................................... 323.3. JDBC connections ............................................................................................ 323.4. Optional configuration properties ........................................................................ 343.4.1. SQL Dialects .......................................................................................... 413.4.2. Outer Join Fetching ................................................................................ 423.4.3. Binary Streams ...................................................................................... 423.4.4. Second-level and query cache ................................................................ 423.4.5. Query Language Substitution .................................................................. 423.4.6. Hibernate statistics ................................................................................. 423.5. Logging ............................................................................................................ 433.6. Implementing a NamingStrategy ........................................................................ 433.7. XML configuration file ........................................................................................ 443.8. J2EE Application Server integration ................................................................... 453.8.1. Transactionstrategy configuration ........................................................... 46

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)//-->