Top Description Methods
org.hibernate.annotations

public @Interface NamedNativeQuery

extends Annotation
Annotations
@Target:TYPE, PACKAGE
@Retention:RUNTIME
Static Imports
java.lang.annotation.ElementType.PACKAGE, .ElementType.TYPE, .RetentionPolicy.RUNTIME

Extends javax.persistence.NamedNativeQuery with Hibernate features
Author
Emmanuel Bernard

Method Summary

Modifier and TypeMethod and Description
public boolean
cacheable()

mark the query as cacheable or not

public CacheModeType
cacheMode()

the cache mode used for this query

public String
cacheRegion()

the cache region to use

public boolean
public String
comment()

comment added to the SQL query, useful for the DBA

public int
fetchSize()

the number of rows fetched by the JDBC Driver per roundtrip

public FlushModeType
flushMode()

the flush mode for the query

public String
name()

public String
public boolean
readOnly()

marks whether the results are fetched in read-only mode or not

public Class<T>
public String
public int
timeout()

the query timeout in seconds

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

cacheableback to summary
public boolean cacheable()

mark the query as cacheable or not

cacheModeback to summary
public CacheModeType cacheMode()

the cache mode used for this query

cacheRegionback to summary
public String cacheRegion()

the cache region to use

callableback to summary
public boolean callable()
commentback to summary
public String comment()

comment added to the SQL query, useful for the DBA

fetchSizeback to summary
public int fetchSize()

the number of rows fetched by the JDBC Driver per roundtrip

flushModeback to summary
public FlushModeType flushMode()

the flush mode for the query

nameback to summary
public String name()
queryback to summary
public String query()
readOnlyback to summary
public boolean readOnly()

marks whether the results are fetched in read-only mode or not

resultClassback to summary
public Class<T> resultClass()
resultSetMappingback to summary
public String resultSetMapping()
timeoutback to summary
public int timeout()

the query timeout in seconds