| Modifier and Type | Required Element and Description | 
|---|---|
| String | nameThe name used to refer to the query with the  EntityManagermethods that create query objects. | 
| String | queryThe SQL query string. | 
| Modifier and Type | Optional Element and Description | 
|---|---|
| QueryHint[] | hintsQuery properties and hints. | 
| Class | resultClassThe class of the result. | 
| String | resultSetMappingThe name of a  SqlResultSetMapping, as defined in metadata. | 
public abstract String name
EntityManager 
 methods that create query objects.public abstract String query
public abstract QueryHint[] hints
public abstract Class resultClass
public abstract String resultSetMapping
SqlResultSetMapping, as defined in metadata.Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.