@Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE}) @Documented public @interface Query
Modifying
Modifier and Type | Optional Element and Description |
---|---|
String |
countName
Returns the name of the
NamedQuery to be used to execute count queries when pagination is
used. |
String |
countProjection
Defines the projection part of the count query that is generated for pagination.
|
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
countProjection()
query if any.public abstract String countProjection
countQuery()
nor countProjection()
is configured we will derive the count query from the original query.public abstract boolean nativeQuery
public abstract String name
NamedQuery
with name of
$ domainClass
.${queryMethodName}} will be used.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.