Home / Hibernate / JPA · हिन्दी
Hibernate / JPA
Learn JPA and Hibernate: entities, the persistence context, mappings, relationships, lazy loading and N+1 fixes, JPQL, transactions, locking and Spring Data.
Start course →
What you'll learn Explain ORM, Jakarta Persistence, Hibernate and Spring Data JPA, and configure them with schema migrations. Map entities with IDs, enums, embeddables, converters and inheritance strategies. Work with the persistence context: entity states, persist, merge, dirty checking and flushing. Map relationships correctly with owning sides, cascades, orphan removal and safe equality. Fetch data efficiently with lazy loading, join fetch, entity graphs, batch fetching and DTO projections. Write JPQL, Criteria and native queries, and manage transactions, locking, caching and tests.
Syllabus ORM, JPA and Hibernate Why ORM, and What JPA and Hibernate Are Setting Up JPA with Spring Boot Your First Entity
The Persistence Context EntityManager Operations Entity States and Dirty Checking Flushing, the First-Level Cache and Transactions
Mapping Types, Keys and Inheritance Basic Types, Enums, Embeddables and Converters Primary Keys and ID Generation Inheritance Mapping Strategies
Relationships @ManyToOne, @OneToMany and the Owning Side Many-to-Many and One-to-One Cascades, Orphan Removal and Entity Equality
Fetching and Performance Lazy and Eager Loading The N+1 Select Problem DTO Projections and Read Models
Querying JPQL Essentials Criteria API and Specifications Native SQL and Bulk Operations
Transactions, Locking and Caching Transactions with Spring and JPA Optimistic and Pessimistic Locking Second-Level and Query Caching
Spring Data JPA, Performance, Testing and Revision Spring Data JPA Repositories Performance Checklist Testing the Persistence Layer Revision and Interview Questions