javax.persistence
Annotation Type NamedNativeQuery


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface NamedNativeQuery

The @NamedNativeQuery annotation.


Required Element Summary
 java.lang.String name
           
 java.lang.String query
           
 
Optional Element Summary
 QueryHint[] hints
           
 java.lang.Class resultClass
           
 java.lang.String resultSetMapping
           
 

Element Detail

name

public abstract java.lang.String name

query

public abstract java.lang.String query

hints

public abstract QueryHint[] hints
Default:
{}

resultClass

public abstract java.lang.Class resultClass
Default:
void.class

resultSetMapping

public abstract java.lang.String resultSetMapping
Default:
""