Spring Data JPA allows placing @QueryHints annotation on the interface method and can be applied to the methods annotated with @Query and without such.
@QueryHints(@javax.persistence.QueryHint(name="org.hibernate.fetchSize", value="50"))
List<Foo> findAll();
How can I check know for sure that hint was honored?