Skip to content
javabypankaj
HomeLibraryPopularCommunity
09
JPA & Hibernate
17 topics · 69 questions
1JPA Fundamentals0/552N+1 Problem & Fetching0/223Entity Mapping: Relationships0/554Entity Mapping: Keys, Columns & Annotations0/885Embeddable, Inheritance & Secondary Tables0/556Spring Data Repositories0/47Queries: JPQL, Native, Derived, Criteria0/668Projections: Interface, DTO, Dynamic0/449Entity Lifecycle & Auditing0/2210Locking: Optimistic & Pessimistic0/4411Pagination & Sorting0/3312Performance: Large IN, Dirty Checking, OSIV0/6613Flush, Persist & Cache0/5514Cascade, Orphan Removal & Soft Delete0/2215Batch Processing0/2216Multi-Database & Migration0/2217Scheduling: @Scheduled, ShedLock, Retry0/44
1JPA Fundamentals52N+1 Problem & Fetching23Entity Mapping: Relationships54Entity Mapping: Keys, Columns & Annotations85Embeddable, Inheritance & Secondary Tables56Spring Data Repositories47Queries: JPQL, Native, Derived, Criteria68Projections: Interface, DTO, Dynamic49Entity Lifecycle & Auditing210Locking: Optimistic & Pessimistic411Pagination & Sorting312Performance: Large IN, Dirty Checking, OSIV613Flush, Persist & Cache514Cascade, Orphan Removal & Soft Delete215Batch Processing216Multi-Database & Migration217Scheduling: @Scheduled, ShedLock, Retry4
17 topics69 Qs0%
01Core Java17002OOP3203Collections6704Exception Handling2805Concurrency & Multithreading12706Java Streams, Lambda & Functional Programming32807Spring & Spring Boot2608Transactions3209JPA & Hibernate6910Microservices19411Kafka & Messaging9112DevOps, CI/CD & Tooling13313Database & SQL14114REST API & Web4015Design Patterns & LLD5716Advanced Java7117Coding Problems: DSA49218AWS & Cloud4119Data Engineering19420QA, Testing & SDET4121System Design3522Security2023Behavioral / HR: STAR Method37
17Topics
69Questions
0%Complete
6 of 17 topics
Topics
1JPA Fundamentals0/552N+1 Problem & Fetching0/223Entity Mapping: Relationships0/554Entity Mapping: Keys, Columns & Annotations0/885Embeddable, Inheritance & Secondary Tables0/55
6Spring Data Repositories0/44
7Queries: JPQL, Native, Derived, Criteria0/668Projections: Interface, DTO, Dynamic0/449Entity Lifecycle & Auditing0/2210Locking: Optimistic & Pessimistic0/4411Pagination & Sorting0/3312Performance: Large IN, Dirty Checking, OSIV0/6613Flush, Persist & Cache0/5514Cascade, Orphan Removal & Soft Delete0/2215Batch Processing0/2216Multi-Database & Migration0/2217Scheduling: @Scheduled, ShedLock, Retry0/44

Spring Data Repositories

JPA & Hibernate·Topic 6 of 17·4 questions
Q1CrudRepository vs JpaRepository?

CrudRepository provides basic CRUD (save, find, delete, count); JpaRepository extends it with pagination, sorting, flush, batch delete, and lazy references – use JpaRepository for Spring Boot apps.

Read Answer
Q2Repository pattern vs DAO?

The Repository pattern abstracts data access behind an interface so business logic depends on the abstraction, not the persistence technology – enabling swappable stores, easy mocking, and clean separation.

Read Answer
Q3CrudRepository vs JpaRepository: the differences?

CrudRepository is basic CRUD, PagingAndSortingRepository adds paging and sorting, and JpaRepository adds JPA batch and flush power.

Read Answer
Q4Repository pattern vs DAO: abstraction and testability?

DAO abstracts the data source table-by-table; Repository abstracts the domain as a collection of aggregates, and both hide persistence so the store is swappable and testable.

Read Answer
Previous · Topic 5Embeddable, Inheritance & Secondary Tables5 questionsNext · Topic 7Queries: JPQL, Native, Derived, Criteria6 questions
javabypankaj© 2026 javabypankaj
PrivacyTerms
HomeSearchLibrary