I must use the Hibernate Query Hint HINT_PASS_DISTINCT_THROUGH
in every requests that uses DISTINCT
keyword in my Spring Boot application.
Instead of setting the hint with the @QueryHint
annotation or the Query.setHint
method, I'm wondering if there's a way to set it once for all queries, for example with an application property?
Asked
Active
Viewed 42 times
1

Guillaume Delafosse
- 222
- 1
- 3
- 14