Add one-to-many module: @OneToMany in Hibernate 7.4.16.Final (unidirectional join table vs @JoinColumn vs mappedBy, Set vs List removal cost, sync helper, fetch defaults, N+1, MultipleBagFetchException fixes, id-hashCode trap)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4H5ph3J7k2MJnRuVH
This commit is contained in:
asmhatre
2026-11-16 10:49:49 +05:30
co-authored by Claude Sonnet 5.5
parent bdae169002
commit eab5461d86
24 changed files with 1560 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
# Bidirectional sync: parent side only vs helper method
# Hibernate ORM 7.4.16.Final, H2, JDK 25
in memory, before flush: e.department == null
database after commit: employee 1 has dept_id = null
database after commit: employee 2 (via helper) has dept_id = 2