In the previous part of this tutorial we solved some common problems found from “clean” unit tests by using nested configuration. I was very happy with the final test class, but after a while I realized that something was bothering me. The only problem was that I couldn’t figure out what it was. I ignored […] Read more
I think that the best part of writing a blog is to get comments from my readers. Because I have learned a lot from my readers, I want to “reward” the best comments, help you to learn new things, and (hopefully) encourage people to leave more comments. The rules are simple: I select X best […] Read more
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 described how we can create database queries from the method names of our query methods. Although that strategy has its advantages, it has its weaknesses as well. This blog post describes how we can avoid those weaknesses by using the @Query annotation. We will also implement a simple search […] 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
There are many good reasons why using a new library, framework, or programming language (later referred as a tool) is not worth it. However, for some reason the most common reason I hear is: We don’t have time to learn how to use it. It is easy to think that this argument is used by […] Read more