Tagged “Hibernate”
2 articles with this tag.
- Mappings & fetchingMapping relationships with JPA: @OneToMany, @ManyToOne, @OneToOne and @ManyToMany, owning side and mappedBy, bidirectional helpers, cascades and orphan removal, embeddables, inheritance strategies; fetch types and their defaults, LazyInitializationException, the N+1 query problem and its fixes (fetch joins, entity graphs, batch fetching, projections), and equals/hashCode for entities.
- Spring Data JPA & HibernateHow JPA, Hibernate and Spring Data fit together: the persistence context as a unit of work and first-level cache, entity states (transient, managed, detached, removed), flush modes and dirty checking, save vs merge, repositories and derived queries, projections, open-session-in-view, batching, identifier generation, and what changed in Hibernate 7 and Jakarta Persistence 3.2.