JPA
-
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 » -
Enterprise Java
Refresh and Fetch an Entity After Save in Spring Data JPA
The Java Persistence API (JPA) serves as a connector linking Java objects and relational databases, facilitating the smooth persistence and…
Read More » -
Enterprise Java
Changing The Way We Use JPA
I’ve been updating some training materials recently, and thinking about better ways of teaching and talking about JPA. One of…
Read More » -
Core Java
Java 16 Records with JPA and jOOQ
Java Records The new Java version 16 includes a new feature: Records https://openjdk.java.net/jeps/395 “Enhance the Java programming language with records, which are…
Read More » -
Enterprise Java
How to get Type-Safe and Intuitive Hibernate/JPA Queries by Leveraging Java Streams
A large proportion of Java database applications are using Hibernate/JPA to bridge the gap between Java and SQL. Until recently,…
Read More » -
Enterprise Java
Spring boot data JPA – Query for nested object
Nowadays spring boot and spring data are widely used frameworks. If you are building web application in java, spring boot…
Read More » -
Enterprise Java
Spring Boot Data JPA – beginner guide
Databases form an integral part of computer applications. With it comes considerable amount of database operations and the corresponding code.…
Read More » -
Enterprise Java
JPA @Embeddable and @Embedded
Introduction: As an object-oriented developer, we want to avoid having larger classes with tons of unrelatable fields. And so, we…
Read More » -
Enterprise Java
Read replicas and Spring Data Part 4: Configuring the read repository
Previously we set up two EntityManagers in the same application. One for the reads and one for the writes. Now…
Read More »