JPA Advanced - Auditing, Locking & Specifications
Learn JPA Advanced - Auditing, Locking & Specifications (Spring Data JPA, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Beyond Mapping: What This Topic Adds By now an entity maps to a table, a repository writes queries from method names, and a join pulls two tables together. This topic covers the parts of JPA that appear once an application is actually in production: fields that must not be persisted, enums stored safely, hooks that run around a save, columns that fill themselves in, and queries built at runtime rather than declared at compile time.
More lessons in Spring Data JPA
- ORM, JPA and Hibernate
- 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
- Mini Project: Student Repository with Spring Data JPA