Category: Programming (33 / 37)

Integration Testing With Maven

Adding integration tests to a Maven build has traditionally been a bit painful. I suspect that the reason for this is that the standard directory layout has only one test directory ( src/test). If we want to use the standard directory layout and add integration tests to our Maven build, we have two options: First, […] Read More about Integration Testing With Maven

Spring Data JPA Tutorial: Adding Custom Methods to a Single Repository

Although Spring Data JPA provides an excellent support for implementing CRUD operations and creating database queries, sometimes we need to do things that are not supported by it. For example, Spring Data JPA doesn't provide a built-in support for querying DTOs by using SQL. Luckily for us, we can "extend" our Spring Data JPA repositories […] Read More about Spring Data JPA Tutorial: Adding Custom Methods to a Single Repository

Spring Data JPA Tutorial: Pagination

My Spring Data JPA tutorial has taught us how we can create database queries and sort our query results with Spring Data JPA. We have also implemented a search function that ignores case and returns todo entries whose title or description contains the given search term. This search function sorts the returned todo entries in […] Read More about Spring Data JPA Tutorial: Pagination

Spring Data JPA Tutorial: Sorting

My Spring Data JPA tutorial has taught us how we can create both static and dynamic database queries with Spring Data JPA. We have also implemented a search function that ignores case and returns todo entries whose title or description contains the given search term. However, we haven't paid any attention to one very important […] Read More about Spring Data JPA Tutorial: Sorting

Get practical tips and tutorials on test automation, Spring, and software development in your inbox. You’ll also never miss a new blog post. You can unsubscribe at any time.

My privacy policy identifies the information which I collect if you subscribe my email newsletter and describes how I use the collected information.