
PrimeFaces DataTable Lazy Loading With Paging and Sorting
Use PrimeFaces DataTable lazy loading with LazyDataModel: paging, sorting and filtering pushed to the database through a repository query.
Entity mapping, lazy loading, the N+1 query and other ways JPA surprises you, with the SQL it actually runs.

Use PrimeFaces DataTable lazy loading with LazyDataModel: paging, sorting and filtering pushed to the database through a repository query.

Manage JDBC transactions by hand: turn off auto commit, commit and roll back, use savepoints, set isolation levels and keep the connection handling safe.

Combine Struts 2 with Hibernate by opening a session per request in an interceptor or filter, keeping lazy loading working in JSPs, and managing transactions.

The four Hibernate entity states, transient, managed, detached and removed, how the persistence context tracks them and how persist and merge move them.

Fix TransactionRequiredException when saving or running an update query by placing a transaction around the call and checking that the proxy applies.

The building blocks of domain-driven design in Java: entities, value objects, aggregates, repositories, domain services and events, with short code for each.

How Hibernate dirty checking decides which entities to UPDATE at flush: snapshots, comparison cost, DynamicUpdate and bytecode enhancement.

Find out why @Transactional is ignored on a self call, a private method or a swallowed exception, and fix it by moving the call across a bean boundary.

Compare the repository pattern with Spring Data repositories: what each is for, when a domain interface over Spring Data helps and when it adds nothing.

Learn Jakarta Data 1.0: repository interfaces, CrudRepository, Find and Query annotations, pagination and how it compares with Spring Data.

Use Hibernate statistics and slow query logging to find costly queries: enable generate_statistics, read counters, set a threshold and expose metrics.

Why Hibernate throws LazyInitializationException outside a transaction, how to confirm which cause you have and the fixes in order of preference.
We send one email when a new post is published. No spam.