Home / Spring Boot / Data and Transactions
Data and Transactions
Spring Data JPA, Hibernate internals, relationships, advanced JPA, transactions, other data stores, pooling and migrations.
Spring Data JPASpring Data JPA removes almost all database boilerplate.Hibernate Internals: Persistence Context, Dirty Checking and FlushMost JPA bugs come from not understanding the persistence context.JPA Relationships and the N+1 ProblemRelationships connect entities.Advanced JPA: Specifications, Auditing, Locking and MappingThese are the features that separate demo projects from real systems: dynamic filters, automatic created and updated timestamps, protection against lost updates, soft delete and richer mappings.Transactions with @TransactionalA transaction groups database operations so that they all succeed or all fail together.JdbcTemplate, MongoDB and Redis with Spring BootNot every problem needs JPA.Connection Pool (HikariCP) and Flyway MigrationsTwo things every real project needs: a tuned connection pool, and versioned database migrations instead of letting Hibernate change your schema.Complete CRUD REST API (All Layers)This page puts everything together: entity, repository, DTOs, service, controller, validation and error handling, in a clean layered structure.