
Hibernate JPA Guide to Mapping Fetching and N Plus 1
Map entities, control fetching and remove the N plus 1 problem in Hibernate 7, with the settings and habits that keep JPA predictable.
Everything you need to level up your coding skills.

Map entities, control fetching and remove the N plus 1 problem in Hibernate 7, with the settings and habits that keep JPA predictable.

A complete guide to the Hibernate second level cache: JCache setup, entity, collection and query caches, strategies, invalidation, clustering and measuring.

A complete guide to custom queries in Spring Data JPA: derived queries, JPQL and native SQL, paging, Specifications, fragments, streaming and tests.

Fix the Spring Boot DataSource startup failure by checking the URL, the driver, the active profile and whether the application should have a database at all.

Size a HikariCP pool using the cores and spindles formula, Little's Law and measurement, and avoid the common mistakes of oversized pools.

Implement cursor (keyset) pagination in a Spring Boot API with an opaque cursor, a stable sort and a limit plus one query, using JdbcClient or Spring Data.

JPA is a specification and Hibernate is the implementation most Java projects use. See how the two relate to Spring Data and JDBC in a running application.

Detect the Hibernate N plus 1 query problem with a statement count, then remove it with a fetch join, an entity graph or batch fetching.

Connect to PostgreSQL with JDBC, run queries and updates with prepared statements, read results safely and manage transactions, in one runnable example.

Detect N plus 1 queries in Java tests: count statements with Hibernate statistics or datasource-proxy and fail the build when a budget is exceeded.

Load a Vaadin Grid page by page from a database with a callback data provider, add sorting and filtering, and avoid loading every row into memory.

How the Hibernate first level cache and flush modes work: identity map behaviour, AUTO flush before queries, COMMIT and MANUAL modes and batch clearing.
We send one email when a new post is published. No spam.