1.1
SessionFactory
->org.hibernate.SessionFactory
to create org.hibernate.Session
Session->single Thread
Unit of Work
JDBC ->java.sql.Connection
org.hibernate.Transaction
Single Thread
1.2
Contextual sessions
SessionFactory.getCurrentSession()
domain model
data modeling
problem domain
POJO(Plain Old Java Object)
2.1
POJO model
2.1.1
Implement no-parameter constructor
2.1.2
identifier
2.1.3
use not final class
lazy load
2.1.4
Declare for persistent properties
get,set methods
2.1.5
Implement equals() and hashCode()
method
Three states of entity:
1.manged(persistent)
2.transient
3.detached
2.2
Dynamic
POJO/javaBean
Map running Map
Hibernate Domain Model Mapping
Chapter 3
Bootstrap(boot-start)
3.1
Native
3.1.1
Build ServiceRegistry