
Spring Data JPA Transactions and Queries
Spring transactional options in Spring Data JPA: EntityManager, TransactionTemplate, @Transactional, native queries, Criteria API and DTO projections.
Tag archive

Spring transactional options in Spring Data JPA: EntityManager, TransactionTemplate, @Transactional, native queries, Criteria API and DTO projections.

Make Spring saveAll() 6x faster with hibernate.jdbc.batch_size and reWriteBatchedInserts. Four approaches benchmarked with before and after numbers.

Spring Data JPA with Kotlin without Hibernate surprises: no-arg entities, data class risks, JpaRepository, JPQL, pagination, projections and filters.
The classic 'insert, catch the unique violation, re-read' pattern silently doesn't work with JPA — because save() doesn't flush, the violation fires at commit, outside your try/catch. Here's why, and the fix.
🇺🇸 English version (🇧🇷 versão em português logo abaixo) The problem: sessions with limited...
Hey everyone, We just published version v1.8.0 of JPersist, an open-source ecosystem of highly...

What a Kotlin data class compiles to and where it breaks in Spring Boot 4: JPA entities, lost Jackson defaults and @NotBlank that never runs.
Spring Data JPA makes repository development incredibly convenient. You define an entity, extend...
Hey everyone, If you’ve ever managed enterprise Jakarta Persistence (JPA) setups in complex Gradle...

Most JPA projects I've worked on hit the same wall on the read side. Writes through entities are...
Hi everyone! 👋 I am a Java developer documenting my journey toward mastering full-stack software...
Every few months the same argument flares up again: Spring Data JPA or jOOQ, which one should a...