Loading…
65+ curated questions with the same answer shape every time: quick recap, deep dive, pitfalls, and follow-ups. Coverage includes jpa basics and orm concepts, entity mapping annotations, jpa relationships onetoone onetomany manytomany, spring data repositories, and more.
Suggested path
Topics follow a teaching order. Each answer ends with a clear Next question control so you can move forward without hunting the list.
JPA and Hibernate are how Spring Boot applications talk to relational databases, and freshers are expected to know enough to design entity classes, define relationships, and write basic queries without generating N+1 problems. This module covers the @Entity / @Table / @Column annotations, the relationship mappings (@OneToMany, @ManyToOne, @ManyToMany) with their owning-side rules, Spring Data JPA's derived query mechanism (findByEmailAndActive), the difference between JPQL and native SQL in queries, and why lazy loading causes the single most common Spring Boot production bug — the LazyInitializationException.
Full catalog
Topics are ordered for learning. Within each topic, rows are numbered 1–65 globally so you always know where you are. Collapse topics if you want a lighter view — use Expand all when you need the full list again.
Numbers 1–65 follow the order we recommend — click any row to open the full answer, or use the sticky Next link at the bottom of each page to go Q1 → Q65.
Interviewers rarely ask Spring Data JPA & Hibernate Basics in isolation. These are the modules that most often come up in the same loop.