|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface Query
Annotation to declare finder queries directly on repository methods.
Optional Element Summary | |
---|---|
String |
countName
Returns the name of the NamedQuery to be used to execute count queries when pagination is
used. |
String |
countQuery
Defines a special count query that shall be used for pagination queries to lookup the total number of elements for a page. |
String |
name
The named query to be used. |
boolean |
nativeQuery
Configures whether the given query is a native one. |
String |
value
Defines the JPA query to be executed when the annotated method is called. |
public abstract String value
public abstract String countQuery
public abstract boolean nativeQuery
public abstract String name
NamedQuery
with name of
$ domainClass
.${queryMethodName}} will be used.
public abstract String countName
NamedQuery
to be used to execute count queries when pagination is
used. Will default to the named query name configured suffixed by .count
.
name()
|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |