Guide to Java Persistence and Hibernate
Sebastian Hennebrueder
Guide to Java Persistence and Hibernate
Sebastian Hennebrueder
Table of Contents
About the author, book and versions ................................................................................................ viii
1. The author ............................................................................................................................. viii
2. The book ................................................................................................................................ viii
3. Library Versions ...................................................................................................................... ix
I. Introduction ........................................................................................................................................ 1
1. Introduction to Hibernate ......................................................................................................... 2
1.1. A first Hibernate example ............................................................................................. 2
1.2. Hibernate basics ........................................................................................................... 19
2. Hibernate Concepts - State of Objects ................................................................................... 21
2.1. The three states of objects ........................................................................................... 21
2.2. Lazy initialization, a Hibernate problem ..................................................................... 23
3. Working with Objects ............................................................................................................. 27
3.1. Java Persistence versus Hibernate ............................................................................... 27
3.2. Hibernate API...