@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Query
Modifier and Type | Optional Element and Description |
---|---|
javax.persistence.QueryHint[] |
hints
(Optional) Query properties and hints.
|
boolean |
isNative
Defines a native SQL query.
|
javax.persistence.LockModeType |
lock
Defines a lock mode for the query.
|
int |
max
Limits the number of results the query returns.
|
String |
named
References a named query.
|
SingleResultType |
singleResult
Defines how a single result query is fetched.
|
String |
value
Defines the Query to execute.
|
public abstract String named
public abstract javax.persistence.LockModeType lock
public abstract javax.persistence.QueryHint[] hints
public abstract SingleResultType singleResult
Copyright © 2014 The Apache Software Foundation. All rights reserved.