-
Enterprise Java
How to batch DELETE statements with Hibernate
Introduction In my previous post, I explained the Hibernate configurations required for batching INSERT and UPDATE statements. This post will…
Read More » -
Enterprise Java
How to batch INSERT and UPDATE statements with Hibernate
Introduction JDBC has long been offering support for DML statement batching. By default, all statements are sent one after the…
Read More » -
Enterprise Java
Hibernate CascadeType.LOCK gotchas
Introduction Having introduced Hibernate explicit locking support, as well as Cascade Types, it’s time to analyze the CascadeType.LOCK behavior. A…
Read More » -
Enterprise Java
A beginner’s guide to JPA and Hibernate Cascade Types
Introduction JPA translates entity state transitions to database DML statements. Because it’s common to operate on entity graphs, JPA allows…
Read More » -
Enterprise Java
Hibernate Locking Patterns – How does PESSIMISTIC_READ and PESSIMISTIC_WRITE work
Introduction Java Persistence API comes with a thorough concurrency control mechanism, supporting both implicit and explicit locking. The implicit locking…
Read More » -
Enterprise Java
Hibernate locking patterns – How does PESSIMISTIC_FORCE_INCREMENT Lock Mode work
Introduction In my previous post, I introduced the OPTIMISTIC_FORCE_INCREMENT Lock Mode and we applied it for propagating a child entity…
Read More » -
Enterprise Java
Hibernate locking patterns – How does OPTIMISTIC_FORCE_INCREMENT Lock Mode work
Introduction In my previous post, I explained how OPTIMISTIC Lock Mode works and how it can help us synchronize external…
Read More » -
Enterprise Java
How to fix optimistic locking race conditions with pessimistic locking
Recap In my previous post, I explained the benefits of using explicit optimistic locking. As we then discovered, there’s a…
Read More » -
Enterprise Java
Hibernate locking patterns – How does Optimistic Lock Mode work
Explicit optimistic locking In my previous post, I introduced the basic concepts of Java Persistence locking. The implicit locking mechanism…
Read More »