Hibernate
-
Enterprise Java

Building Read-Write Database Routing in Spring Boot with JPA
Enterprise applications often require the separation of database workloads to improve performance and scalability. Read operations can be directed to…
Read More » -
Core Java

The Hidden Cost of Records: When Java Records Break Your Serialization, JPA, and Reflection-Heavy Code
Records are now a mainstream Java feature — clean, concise, and genuinely useful. But the introductory tutorials skip the part…
Read More » -
Core Java

Using @ConcreteProxy in Hibernate
Hibernate is a powerful ORM framework, but its use of proxies for lazy loading can sometimes lead to subtle and…
Read More » -
Core Java

Joining Unrelated Tables with JPA Criteria API
In real-world enterprise applications, it is common to encounter database tables that do not have explicit JPA relationships (such as…
Read More » -
Core Java

How to Fix Hibernate’s token ‘*’ SyntaxException
Hibernate’s JPQL (Java Persistence Query Language) provides an object-oriented abstraction over SQL, allowing us to query entities instead of database…
Read More » -
Enterprise Java

Spring Boot & Hibernate @PartitionKey Guide
In high-scale applications, partitioning your database tables can significantly improve performance and scalability. Hibernate provides support for partitioning with the…
Read More » -
Enterprise Java

Using TupleTransformer and ResultListTransformer in Hibernate
In Hibernate, developers often use native SQL queries or JPQL queries that return complex results — such as multiple columns…
Read More » -
Java

Preventing Jackson from Fetching Lazy Entity Fields Example
1. Introduction The Spring Boot JPA project uses Jackson for JSON serialization. When Jackson serializes a JPA entity, it can…
Read More » -
Core Java

Using StatelessSession in Hibernate
When working with Hibernate, we usually interact with the Session interface. A session represents a single unit of work with…
Read More »




