The Best Comments of February 2016

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.
4 comments… add one
  • MW Mar 3, 2016 @ 18:34

    Hi Petri,
    nice 'Best Comments of ..'!!
    Could you add a tag / category to all 'The Best Comments of ..', 'My Favorite Blog Posts of ..' and '10 Most Popular Blog Posts of ..' posts? They just seem 'uncategorized'.
    I can see 23 categories which I can choose from. But I can't see any list of all used tags, can I?
    Best regards, Mark

    • Petri Mar 4, 2016 @ 20:59

      Hi MW,

      The categories are a mess at the moment because I didn't pay any attention to them when I started this blog (you might noticed that I have a lot of "unnecessary" categories).

      Do you want to access all of these posts from a single page or do you want that to have different pages for "the best comments", "my favorite blog posts", and "most popular blog posts"?

      I assume that you want to get them from different pages, but it is better to be safe than sorry.

      • MW Mar 7, 2016 @ 18:28

        Hi Petri,
        I leave this completely up to you! Whatever you create is 'better' than having them 'uncategorized' :-))
        Thanks in advance!

        • Petri Mar 9, 2016 @ 16:51

          OK :) I will figure out a way to solve to this problem.

Leave a Reply