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 comments that were left on my blog during the previous month.
- I link to these comments and explain why I chose them.
- If the author of the selected comment has a blog, I add a link to her/his blog as well.
Enough with chit chat. The seven best comments of February 2016 are (in chronological order):
The Seven Best Comments of February 2016
- Venkata wanted to know how he can set the fetch size when he is creating a database query by using Spring Data JPA and the @Query annotation. I selected this comment on this list because I thought that you cannot do this. However, I found a StackOverflow question that answered to Venkat's question.
- Gabriel wanted to know how he can create a case insensitive and an accent insensitive query with Spring Data JPA. I selected this comment on this list because this is the first time when I have heard this question. Anyway, if you have to solve the same problem, your best option is to use SQL queries.
- Ben asked why the CrudRepository interface is annotated with the @NoRepositoryBean annotation. This is an excellent question because it shows that Ben really wants to know his tools, and I think that this is a great attitude. Anyway, I was able to provide a sensible answer to his question.
- Santiago asked why the example application of my Spring Data JPA tutorial exposes the implementation details of the repository layer to the service layer. This comment deserves to be on this list because it is an excellent question. I explained to him that I don't want to add complexity unless it is absolutely necessary.
- Nataraj wanted to know he/she can solve his/her jOOQ configuration problem. I chose this comment because people might not realize that Spring Boot is a bit easier to configure than Spring Framework. Since he/she is using Spring Boot, I explained that he/she shouldn't follow the advice given in my blog post because Spring Boot has a built-in support for jOOQ.
- Tanya wanted to know how she can configure her multi-project Gradle build to ignore test failures. I selected this comment because I didn't know the answer to her question. Luckily, I found an interesting discussion that provides multiple solutions to this problem.
- Anonymous asked how he can inject a bean into his custom argument resolver. I selected this comment on this list because this seems to be a quite common use case. I didn't cover this in my original blog post because I wanted to keep it simple. However, if you need to do this, you need to follow these steps.