Java/JVM

How Hibernate Turned a Preview into a Write

The bug that shouldn’t have existed The report read like a riddle: edit a record, preview the impact (to confirm/or not confirm), click Cancel, refresh — and the changes are still there. No error. Cancel is the one button whose entire job is to not do things — and yet the changes had been saved […]

Srishti Mittal
Srishti Mittal
Read

Java/JVM

Hibernate N+1 Query Problem: Causes, Solutions and Production Best Practices

Introduction A production incident often starts with something that looks harmless. A developer ships a Spring Boot API to “Return all customers with their orders.” The code is simple, the response looks correct and everything works perfectly in development. Then traffic grows and the same endpoint causes: Database CPU spikes Connection pool exhaustion Higher API […]

Rajdeep Dabral
Rajdeep Dabral
Read

Java/JVM

JPA Criteria Api – A code alternate to raw SQL queries

Introduction JPA is a hibernate specification that helps us in managing, accessing & persisting data between RDBMS and Java objects & one of its main features is Criteria API, which is a pre-defined API and was introduced in JPA 2.0. It defines platform-independent criteria queries written in Java and enables us to achieve the same […]