ORM, JPA and Hibernate
Learn ORM, JPA and Hibernate (Spring Data JPA, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
The Problem ORM Solves A Java program works with objects ( Book , with a title and a price). A relational database works with rows in tables. Moving data between the two by hand with JDBC means writing the same code again and again: open a connection, write SQL, set each parameter, read each column, close everything. ORM (Object-Relational Mapping) removes that work. You describe how a class maps to a table once, and the library generates the SQL and converts rows to objects and back.
More lessons in Spring Data JPA
- Spring Data JPA
- Entity Mapping: @Entity, @Table, @Id, @Column
- Derived Query Methods - Fetch by Single & Multiple Fields
- JPQL and @Modifying Queries
- Native Query with @Query
- Mapping - Real-World Scenarios
- Mapping - One-to-One & One-to-Many
- Mapping - Many-to-One & Many-to-Many
- Cascade Types and orphanRemoval
- Join Queries & DTO Projection
- JPA Advanced - Auditing, Locking & Specifications
- Mini Project: Student Repository with Spring Data JPA