JoinColumn
bidirectional with mapped by
bidirectional with insertable=false
mapping lists
Persistent objects sync their state in a flush (flushmode.AUTO -> commit -> flush)
Persistent objects sync their state without a explicit save
No Flush, No Fun
Equality is not guaranteed outside the session
Equality and detached objects can cause unexpected problems
rollback works as expected
Equality and detached objects can cause unexpected problems
rollback works as expected
flush says WHAT to do, commit or rollback IF u do it
criteria query
criteria query with restrictions
criteria with ilike and matchmode
criteria with alias
query by example
hql query (this is easy, so less commits)
sql query