|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface QueryHints
Wrapper annotation to allow QueryHint
annotations to be bound to methods. It will be evaluated when using
Query
on a query method or if you derive the query from the method name. If you rely on named queries either
use the XML or annotation based way to declare QueryHint
s in combination with the actual named query
declaration.
Optional Element Summary | |
---|---|
boolean |
forCounting
Defines whether the configured QueryHint s shall be applied for count queries during pagination as well. |
javax.persistence.QueryHint[] |
value
The QueryHint s to apply when the query will be executed. |
public abstract javax.persistence.QueryHint[] value
QueryHint
s to apply when the query will be executed.
public abstract boolean forCounting
QueryHint
s shall be applied for count queries during pagination as well.
Defaults to true.
|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |