JPA
-
Core Java
Hibernate Envers – Extending Revision Info with Custom Fields
Hibernate Envers provides automatic auditing of entity changes in Hibernate-based applications. By default, Envers tracks entity modifications with revision numbers…
Read More » -
Enterprise Java
Spring Data JPA Query With Arbitrary AND Clauses Example
Building dynamic queries is a common requirement in modern applications, especially when filtering data based on flexible and user-driven criteria.…
Read More » -
Core Java
Persisting UUIDs in Postgres with JPA
UUIDs are powerful tools for ensuring unique identification in distributed systems. This article explores how to use Spring JPA with…
Read More » -
Core Java
Exploring Jakarta Persistence 3.2
Jakarta Persistence (formerly JPA) is a key part of the Jakarta EE ecosystem, enabling developers to seamlessly map Java objects…
Read More » -
Enterprise Java
Resolving Attribute Naming Issues in Spring JPA
Spring JPA simplifies working with relational databases using the Java Persistence API (JPA), making mapping Java objects to database tables…
Read More » -
Enterprise Java
Query JPA Single Table Inheritance
In Java Persistence API (JPA), inheritance mapping provides a way to map Java class hierarchies to database tables. Single Table…
Read More » -
Core Java
Optional Fields in JPA Entity Example
1. Introduction JPA Entity can have optional fields as not every data is needed for every operation. In this example,…
Read More » -
Enterprise Java
JPA CAST vs TREAT
In JPA (Java Persistence API), managing polymorphic queries involving inheritance hierarchies is a crucial aspect. When working with such queries,…
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 »