Skip to content
SparkTime, home

Tagged #Spring Data JPA

GuideTechnology

29 min read

JPA and Hibernate: Entities, the Persistence Context, Spring Data and Flyway Migrations

Replace the in-memory repository with a real PostgreSQL database using JPA, Hibernate and Spring Data: map an entity, manage the schema with Flyway migrations, understand the persistence context and dirty checking, write queries, and read the SQL Hibernate actually generates, including a real failure only PostgreSQL revealed.