Spring Persistence Tutorial This tutorial series focuses on doing Persistence with Spring – illustrating examples with Hibernate, JPA and Spring Data. Core Persistence + Hibernate 4 with Spring + Hibernate 5 with Spring + JPA with Spring (popular) + Persistence with Spring Data JPA (popular) + Spring Data Java 8 Support +… Continue Reading persistence-with-spring-series

JPA/Hibernate Projections 1. Overview In this tutorial, we’ll learn how to project entity properties using JPA and Hibernate. 2. The Entity First, let’s look at the entity we will be using throughout this article: @Entity public class Product { @Id private long id; private String name; private String description; private… Continue Reading jpa-hibernate-projections

Combining JPA And/Or Criteria Predicates 1. Overview The JPA Criteria API can be used to easily add multiple AND/OR conditions when querying records in a database. In this tutorial, we’ll explore a quick example of JPA criteria queries that combine multiple AND/OR predicates. If you’re not familiar with predicates, we… Continue Reading jpa-and-or-criteria-predicates