Spring Framework

Spring Data JPA Tutorial: Auditing, Part One

When we hear the word auditing, the first thing that comes to mind is an audit log that contains each version of the audited entity. Implementing an audit log is a complex task that takes a lot of time. Luckily, most of the time we don’t need to do it. However, it is quite common […] Read more

Spring Data JPA Tutorial: Creating Database Queries With Named Queries

The previous part of this tutorial described how we can create database queries with the @Query annotation. This tutorial has now covered two of the three methods which we can use to create query methods with Spring Data JPA. This blog post describes the last method. We will learn to create database queries by using […] Read more

The previous part of this tutorial taught us to pass method parameters to our query methods and described what kind of values we can return from them. This blog post describes how we can create query methods by using the query generation from the method name strategy. We will also implement a simple search function […] Read more

Spring Data JPA Tutorial: Introduction to Query Methods

Earlier we created our first Spring Data JPA repository that provides CRUD operations for todo entries. Although that is a good start, that doesn't help us to write real life applications because we have no idea how we can query information from the database by using custom search criteria. One way to find information from […] Read more

Spring From the Trenches: Returning Git Commit Information as JSON

There are situations when we must know the exact version of our web application that is deployed to a remote server. For example, a customer might want to know if we have already deployed a bug fix to the server X. We can, of course, try to find an answer to that question by using […] Read more