Hibernate
-
Core Java
Hibernate @TimeZoneStorage Example
1. Introduction Hibernate 6 introduces TimeZoneStorage annotation that specifies how the time zone information of a persistent property or field…
Read More » -
Enterprise Java
Spring Data DynamicInsert Annotation Example
1. Introduction Spring Data JPA supports common JPA providers, e.g. Hibernate, EclipseLink, etc. Hibernate pre-generates and caches static SQL insert…
Read More » -
Core Java
Change Field Value Before Update and Insert in Hibernate
Changing field values before inserting or updating data in a database is a common requirement in many applications. In Hibernate,…
Read More » -
Enterprise Java
Fixing Spring Boot H2 Exception: “Schema not found”
The H2 “Schema Not Found” exception is a common issue that occurs when using Spring Boot with an H2 in-memory…
Read More » -
Core Java
JPA Inheritance vs Composition Spring Boot Example
1. Introduction Inheritance is an “IS-A” type of relationship in object-oriented programming (OOP). Inheritance is tightly coupled since child classes…
Read More » -
Core Java
Troubleshooting Hibernate’s UnknownEntityException: Could Not Resolve Root Entity
One common issue developers may face with Hibernate is the UnknownEntityException, particularly the message: Could not resolve root entity. This…
Read More » -
Core Java
Fixing the JPA “Could Not Determine Recommended JdbcType for Class” Error
When working with Hibernate and Jakarta Persistence API (JPA), you might encounter the error: Could not determine recommended JdbcType for…
Read More » -
Core Java
Hibernate load() and get(): What’s the Difference?
Two commonly used methods in Hibernate for retrieving objects from the database are load() and get(). Though they appear similar,…
Read More » -
Enterprise Java
Querydsl vs. JPA Criteria
Querydsl and JPA Criteria are widely used frameworks for creating type-safe queries in Java. Both offer methods to express queries…
Read More »