Simplify the DAO with Spring and Java Generics 1. Overview This article will focus on simplifying the DAO layer by using a single, generified Data Access Object for all entities in the system, which will result in elegant data access, with no unnecessary clutter or verbosity. We’ll build on the… Continue Reading simplifying-the-data-access-layer-with-spring-and-java-generics

A Guide to JPA with Spring 1. Overview This tutorial shows how to set up Spring with JPA, using Hibernate as a persistence provider. For a step by step introduction about setting up the Spring context using Java based configuration and the basic Maven pom for the project, see this… Continue Reading the-persistence-layer-with-spring-and-jpa

TransactionRequiredException Error 1. Overview In this tutorial, we’re going to examine the cause of the TransactionRequiredException error and how to solve it. 2. TransactionRequiredException This error typically occurs when we’re trying to perform a database operation that modifies the database without a transaction. For example, attempting to update a record… Continue Reading jpa-transaction-required-exception

REST Query Language with Spring Data JPA and Querydsl 1. Overview In this tutorial, we’re looking at building a query language for a REST API using Spring Data JPA and Querydsl. In the first two articles of this series, we built the same search/filtering functionality using JPA Criteria and Spring… Continue Reading rest-api-search-language-spring-data-querydsl