Today's war story talks about the like expression handling of Spring Data JPA. Although I have written earlier about a better solution for implementing text based search functions, using an external search server like Solr is not a viable option if the implemented search function is rather simple. Let's consider the following example. Using the […] Read more
May 2013
I received a question from a reader of my Spring Data book last week and decided to publish my answer as a blog post. The question was: How can I use Querydsl with Spring Data JPA in a multi-module Maven project? This blog post answers to that question and describes how we can create a […] Read more
I am a bit ashamed to admit this but until yesterday, I had no idea that I can add validation to a REST API by using the @Valid and the @RequestBody annotations. This was not working in Spring MVC 3.0 and for some reason I had not noticed that the support for this was added […] Read more
In the earlier parts of my Spring Data Solr tutorial, we have implemented a simple search function which is used to search the information of todo entries. The current implementation of our search function shows all search results in a single page. This is not a viable solution for most real life applications because the […] Read more
The previous parts of my Spring MVC Test tutorial have described how we can write integration tests for a REST API. Although the techniques described in those blog posts are useful, the problem is that our assertions were not very elegant. Our assertions were basically ensuring that the body of the HTTP response contained the […] Read more