Implement QueryHints annotations in Spring Data JPA by specifying a query hint with the name and value e.g. "javax.persistence.query.timeout" with value 10000. Blogs Java/J2EE Spring Framework How to implement QueryHints in Spring Data JPA