@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface Query
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
public abstract String countProjection
countQuery()
not countProjection()
is configured we will derive the count query from the method name.public abstract boolean nativeQuery
public abstract String name
NamedQuery
with name of
$ domainClass
.${queryMethodName}} will be used.Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.