Hibernate

Hibernate и JPA для Java с нуля: маппинг сущностей и связей, persistence context, ленивая загрузка и N+1, запросы, кэш, транзакции. Поймёте, почему ORM ведёт себя так.

A from-scratch section on Hibernate — the most common JPA implementation. How Java objects map to tables, how the persistence context works, where LazyInitializationException and the N+1 problem come from, how to write queries, and how to avoid the typical ORM pitfalls. Deeper than the Spring Data overview — best read in order.