Top Methods
org.hibernate.query

public Interface NativeQuery<T>

extends Query<T>, SQLQuery<T>, SynchronizeableQuery<T>
Known Direct Subinterfaces
org.hibernate.query.spi.NativeQueryImplementor
Imports
java.time.Instant, .LocalDateTime, .OffsetDateTime, .ZonedDateTime, java.util.Calendar, .Collection, .Date, .Map, javax.persistence.FlushModeType, .LockModeType, .Parameter, .TemporalType, org.hibernate.CacheMode, .FlushMode, .LockMode, .LockOptions, .MappingException, .SQLQuery, .SynchronizeableQuery, org.hibernate.type.Type

Deprecated

as a consequence of Query and SQLQuery being deprecated. See corresponding docs for further information.

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public NativeQuery<T>
addEntity(String
The entity name that is the root return of the query.
entityName
)

Redeclares org.hibernate.SQLQuery.addEntity.

Deprecated as a consequence of NativeQuery being deprecated.
Declare a "root" entity, without specifying an alias.
public NativeQuery<T>
addEntity(String
The SQL table alias
tableAlias
,
String
The entity name
entityName
)

Redeclares org.hibernate.SQLQuery.addEntity.

Deprecated as a consequence of NativeQuery being deprecated.
Declare a "root" entity.
public NativeQuery<T>
addEntity(String
The SQL table alias
tableAlias
,
String
The entity name
entityName
,
LockMode
The lock mode for this return.
lockMode
)

Redeclares org.hibernate.SQLQuery.addEntity.

Deprecated as a consequence of NativeQuery being deprecated.
Declare a "root" entity, specifying a lock mode.
public NativeQuery<T>
addEntity(Class<T>
The java type of the entity to add as a root
entityType
)

Redeclares org.hibernate.SQLQuery.addEntity.

Deprecated as a consequence of NativeQuery being deprecated.
Declare a "root" entity, without specifying an alias.
public NativeQuery<T>
addEntity(String
The SQL table alias
tableAlias
,
Class<T>
The java type of the entity to add as a root
entityType
)

Redeclares org.hibernate.SQLQuery.addEntity.

Deprecated as a consequence of NativeQuery being deprecated.
Declare a "root" entity.
public NativeQuery<T>
addEntity(String
The SQL table alias
tableAlias
,
Class<T>
The entity Class
entityClass
,
LockMode
The lock mode for this return.
lockMode
)

Redeclares org.hibernate.SQLQuery.addEntity.

Deprecated as a consequence of NativeQuery being deprecated.
Declare a "root" entity, specifying a lock mode.
public SQLQuery.FetchReturn
addFetch(String
The SQL table alias for the data to be mapped to this fetch
tableAlias
,
String
Identify the table alias of the owner of this association. Should match the alias of a previously added root or fetch
ownerTableAlias
,
String
The name of the property being join fetched.
joinPropertyName
)

Redeclares org.hibernate.SQLQuery.addFetch.

Declare a join fetch result.
public NativeQuery<T>
addJoin(String
The SQL table alias for the data to be mapped to this fetch
tableAlias
,
String
The association path ([owner-alias].[property-name]).
path
)

Redeclares org.hibernate.SQLQuery.addJoin.

Deprecated as a consequence of NativeQuery being deprecated.
Declare a join fetch result.
public NativeQuery<T>
addJoin(String
The SQL table alias for the data to be mapped to this fetch
tableAlias
,
String
Identify the table alias of the owner of this association. Should match the alias of a previously added root or fetch
ownerTableAlias
,
String
The name of the property being join fetched.
joinPropertyName
)

Redeclares org.hibernate.SQLQuery.addJoin.

Deprecated as a consequence of NativeQuery being deprecated.
Declare a join fetch result.
public NativeQuery<T>
addJoin(String
The SQL table alias for the data to be mapped to this fetch
tableAlias
,
String
The association path ([owner-alias].[property-name]).
path
,
LockMode
The lock mode for this return.
lockMode
)

Redeclares org.hibernate.SQLQuery.addJoin.

Deprecated as a consequence of NativeQuery being deprecated.
Declare a join fetch result, specifying a lock mode.
public NativeQuery<T>
addQueryHint(String
The database specific query hint to add.
hint
)

Redeclares org.hibernate.query.Query.addQueryHint, org.hibernate.SQLQuery.addQueryHint.

Deprecated as a consequence of NativeQuery being deprecated.
Add a DB query hint to the SQL.
public SQLQuery.RootReturn
addRoot(String
The SQL table alias to map to this entity
tableAlias
,
String
The name of the entity.
entityName
)

Redeclares org.hibernate.SQLQuery.addRoot.

Add a new root return mapping, returning a SQLQuery.RootReturn to allow further definition.
public SQLQuery.RootReturn
addRoot(String
The SQL table alias to map to this entity
tableAlias
,
Class<T>
The java type of the entity.
entityType
)

Redeclares org.hibernate.SQLQuery.addRoot.

Add a new root return mapping, returning a SQLQuery.RootReturn to allow further definition.
public NativeQuery<T>
addScalar(String
The column alias in the result-set to be processed as a scalar result
columnAlias
)

Redeclares org.hibernate.SQLQuery.addScalar.

Deprecated as a consequence of NativeQuery being deprecated.
Declare a scalar query result.
public NativeQuery<T>
addScalar(String
The column alias in the result-set to be processed as a scalar result
columnAlias
,
Type
The Hibernate type as which to treat the value.
type
)

Redeclares org.hibernate.SQLQuery.addScalar.

Deprecated as a consequence of NativeQuery being deprecated.
Declare a scalar query result.
public NativeQuery<T>
addSynchronizedEntityClass(Class<T>
The class of the entity upon whose defined query spaces we should additionally synchronize.
entityClass
)

Redeclares org.hibernate.SQLQuery.addSynchronizedEntityClass, org.hibernate.SynchronizeableQuery.addSynchronizedEntityClass.

Deprecated as a consequence of NativeQuery being deprecated.
Adds an entity for (a) auto-flush checking and (b) query result cache invalidation checking.
public NativeQuery<T>
addSynchronizedEntityName(String
The name of the entity upon whose defined query spaces we should additionally synchronize.
entityName
)

Redeclares org.hibernate.SQLQuery.addSynchronizedEntityName, org.hibernate.SynchronizeableQuery.addSynchronizedEntityName.

Deprecated as a consequence of NativeQuery being deprecated.
Adds an entity name for (a) auto-flush checking and (b) query result cache invalidation checking.
public NativeQuery<T>
addSynchronizedQuerySpace(String
The query space to be auto-flushed for this query.
querySpace
)

Redeclares org.hibernate.SQLQuery.addSynchronizedQuerySpace, org.hibernate.SynchronizeableQuery.addSynchronizedQuerySpace.

Deprecated as a consequence of NativeQuery being deprecated.
Adds a query space.
public boolean
isCallable()

Redeclares org.hibernate.SQLQuery.isCallable.

Is this native-SQL query known to be callable?
public NativeQuery<T>
setCacheable(boolean
Should the query results be cacheable?
cacheable
)

Redeclares org.hibernate.query.Query.setCacheable, org.hibernate.SQLQuery.setCacheable.

Deprecated as a consequence of NativeQuery being deprecated.
Enable/disable second level query (result) caching for this query.
public NativeQuery<T>
setCacheMode(CacheMode
The new CacheMode to use.
cacheMode
)

Redeclares org.hibernate.query.Query.setCacheMode, org.hibernate.SQLQuery.setCacheMode.

Deprecated as a consequence of NativeQuery being deprecated.
(Re)set the current CacheMode in effect for this query.
public NativeQuery<T>
setCacheRegion(String
the name of a query cache region, or null to indicate that the default region should be used.
cacheRegion
)

Redeclares org.hibernate.query.Query.setCacheRegion, org.hibernate.SQLQuery.setCacheRegion.

Deprecated as a consequence of NativeQuery being deprecated.
Set the name of the cache region where query results should be cached (if cached at all).
public NativeQuery<T>
setComment(String
The human-readable comment
comment
)

Redeclares org.hibernate.query.Query.setComment, org.hibernate.SQLQuery.setComment.

Deprecated as a consequence of NativeQuery being deprecated.
Set the comment for this query.
public NativeQuery<T>
setFetchSize(int
the fetch size hint
fetchSize
)

Redeclares org.hibernate.query.Query.setFetchSize, org.hibernate.SQLQuery.setFetchSize.

Deprecated as a consequence of NativeQuery being deprecated.
Sets a JDBC fetch size hint for the query.
public NativeQuery<T>
setFirstResult(int
position of the first result, numbered from 0
startPosition
)

Redeclares org.hibernate.query.Query.setFirstResult, org.hibernate.Query.setFirstResult.

Deprecated as a consequence of NativeQuery being deprecated.
Set the position of the first result to retrieve.
public NativeQuery<T>
setFlushMode(FlushMode
The new FlushMode to use.
flushMode
)

Redeclares org.hibernate.SQLQuery.setFlushMode.

Redeclares as abstract: org.hibernate.query.Query.setFlushMode.

Deprecated as a consequence of NativeQuery being deprecated.
(Re)set the current FlushMode in effect for this query.
public NativeQuery<T>
setFlushMode(FlushModeType
flush mode
flushMode
)

Redeclares org.hibernate.query.Query.setFlushMode, org.hibernate.SQLQuery.setFlushMode.

Deprecated as a consequence of NativeQuery being deprecated.
Set the flush mode type to be used for the query execution.
public NativeQuery<T>
setHibernateFlushMode(FlushMode
The new FlushMode to use.
flushMode
)

Redeclares org.hibernate.query.Query.setHibernateFlushMode, org.hibernate.SQLQuery.setHibernateFlushMode.

Deprecated as a consequence of NativeQuery being deprecated.
(Re)set the current FlushMode in effect for this query.
public NativeQuery<T>
setHint(String
name of property or hint
hintName
,
Object
value for the property or hint
value
)

Redeclares org.hibernate.query.Query.setHint, org.hibernate.Query.setHint.

Deprecated as a consequence of NativeQuery being deprecated.
Set a query property or hint.
public NativeQuery<T>
setLockMode(String
a query alias, or "this" for a collection filter
alias
,
LockMode
The lock mode to apply.
lockMode
)

Redeclares org.hibernate.query.Query.setLockMode, org.hibernate.SQLQuery.setLockMode.

Deprecated as a consequence of NativeQuery being deprecated.
Set the LockMode to use for specific alias (as defined in the query's FROM clause).
public NativeQuery<T>
setLockMode(LockModeType
lock mode
lockMode
)

Redeclares org.hibernate.query.Query.setLockMode, org.hibernate.Query.setLockMode.

Deprecated as a consequence of NativeQuery being deprecated.
Set the lock mode type to be used for the query execution.
public NativeQuery<T>
setLockOptions(LockOptions
The lock options to apply to the query.
lockOptions
)

Redeclares org.hibernate.query.Query.setLockOptions, org.hibernate.SQLQuery.setLockOptions.

Deprecated as a consequence of NativeQuery being deprecated.
Set the lock options for the query.
public NativeQuery<T>
setMaxResults(int
maximum number of results to retrieve
maxResult
)

Redeclares org.hibernate.query.Query.setMaxResults, org.hibernate.Query.setMaxResults.

Deprecated as a consequence of NativeQuery being deprecated.
Set the maximum number of results to retrieve.
public <P> NativeQuery<T>
setParameter(QueryParameter<P>
The query parameter memento
parameter
,
P
the possibly-null parameter value
val
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a query parameter using its inferred Type.
public <P> NativeQuery<T>
setParameter(Parameter<P>
parameter object
param
,
P
parameter value
value
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind the value of a Parameter object.
public <P> NativeQuery<T>
setParameter(QueryParameter<P>
The query parameter memento
parameter
,
P
the possibly-null parameter value
val
,
Type
the Hibernate type
type
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a query parameter using the supplied Type
public NativeQuery<T>
setParameter(String
the name of the parameter
name
,
Object
the possibly-null parameter value
val
,
Type
the Hibernate type
type
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a named query parameter using the supplied Type
public NativeQuery<T>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
Object
the possibly-null parameter value
val
,
Type
the Hibernate type
type
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a value to a JDBC-style query parameter.
public <P> NativeQuery<T>
setParameter(QueryParameter<P>
The query parameter memento
parameter
,
P
the possibly-null parameter value
val
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a query parameter as some form of date/time using the indicated temporal-type.
public NativeQuery<T>
setParameter(String
the parameter name
name
,
Object
the possibly-null parameter value
val
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public NativeQuery<T>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
Object
the possibly-null parameter value
val
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public NativeQuery<T>
setParameter(Parameter<Calendar>
parameter object
param
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind an instance of java.util.Calendar to a Parameter object.
public NativeQuery<T>
setParameter(Parameter<Date>
parameter object
param
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind an instance of java.util.Date to a Parameter object.
public NativeQuery<T>
setParameter(String
parameter name
name
,
Object
parameter value
value
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind an argument value to a named parameter.
public NativeQuery<T>
setParameter(String
parameter name
name
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind an instance of java.util.Calendar to a named parameter.
public NativeQuery<T>
setParameter(String
parameter name
name
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind an instance of java.util.Date to a named parameter.
public NativeQuery<T>
setParameter(int
position
position
,
Object
parameter value
value
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind an argument value to a positional parameter.
public NativeQuery<T>
setParameter(int
position
position
,
Calendar
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind an instance of java.util.Calendar to a positional parameter.
public NativeQuery<T>
setParameter(int
position
position
,
Date
parameter value
value
,
TemporalType
temporal type
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind an instance of java.util.Date to a positional parameter.
public NativeQuery<T>
setParameter(Parameter<Instant> param, Instant value, TemporalType temporalType)

Redeclares org.hibernate.query.Query.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
public NativeQuery<T>
setParameter(Parameter<LocalDateTime> param, LocalDateTime value, TemporalType temporalType)

Redeclares org.hibernate.query.Query.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
public NativeQuery<T>
setParameter(Parameter<ZonedDateTime> param, ZonedDateTime value, TemporalType temporalType)

Redeclares org.hibernate.query.Query.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
public NativeQuery<T>
setParameter(Parameter<OffsetDateTime> param, OffsetDateTime value, TemporalType temporalType)

Redeclares org.hibernate.query.Query.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
public NativeQuery<T>
setParameter(String
the parameter name
name
,
Instant
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public NativeQuery<T>
setParameter(String
the parameter name
name
,
LocalDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public NativeQuery<T>
setParameter(String
the parameter name
name
,
ZonedDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public NativeQuery<T>
setParameter(String
the parameter name
name
,
OffsetDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a named query parameter as some form of date/time using the indicated temporal-type.
public NativeQuery<T>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
Instant
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public NativeQuery<T>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
LocalDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public NativeQuery<T>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
ZonedDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public NativeQuery<T>
setParameter(int
the position of the parameter in the query string, numbered from 0.
position
,
OffsetDateTime
the possibly-null parameter value
value
,
TemporalType
the temporal-type to use in binding the date/time
temporalType
)

Redeclares org.hibernate.query.Query.setParameter, org.hibernate.query.Query.setParameter, org.hibernate.SQLQuery.setParameter.

Deprecated as a consequence of NativeQuery being deprecated.
Bind a positional query parameter as some form of date/time using the indicated temporal-type.
public <P> NativeQuery<T>
setParameterList(QueryParameter<P>
the parameter memento
parameter
,
Collection<P>
a collection of values to list
values
)

Redeclares org.hibernate.query.Query.setParameterList, org.hibernate.SQLQuery.setParameterList.

Deprecated as a consequence of NativeQuery being deprecated.
Bind multiple values to a query parameter using its inferred Type.
public NativeQuery<T>
setParameterList(String
the name of the parameter
name
,
Collection<E>
a collection of values to list
values
)

Redeclares org.hibernate.query.Query.setParameterList, org.hibernate.SQLQuery.setParameterList.

Deprecated as a consequence of NativeQuery being deprecated.
Bind multiple values to a named query parameter.
public NativeQuery<T>
setParameterList(String
the name of the parameter
name
,
Collection<E>
a collection of values to list
values
,
Type
the Hibernate type of the values
type
)

Redeclares org.hibernate.query.Query.setParameterList, org.hibernate.SQLQuery.setParameterList.

Deprecated as a consequence of NativeQuery being deprecated.
Bind multiple values to a named query parameter.
public NativeQuery<T>
setParameterList(String
the name of the parameter
name
,
Object[]
a collection of values to list
values
,
Type
the Hibernate type of the values
type
)

Redeclares org.hibernate.query.Query.setParameterList, org.hibernate.SQLQuery.setParameterList.

Deprecated as a consequence of NativeQuery being deprecated.
Bind multiple values to a named query parameter.
public NativeQuery<T>
setParameterList(String
the name of the parameter
name
,
Object[]
a collection of values to list
values
)

Redeclares org.hibernate.query.Query.setParameterList, org.hibernate.SQLQuery.setParameterList.

Deprecated as a consequence of NativeQuery being deprecated.
Bind multiple values to a named query parameter.
public NativeQuery<T>
setProperties(Object
any JavaBean or POJO
bean
)

Redeclares org.hibernate.query.Query.setProperties, org.hibernate.SQLQuery.setProperties.

Deprecated as a consequence of NativeQuery being deprecated.
Bind the property values of the given bean to named parameters of the query, matching property names with parameter names and mapping property types to Hibernate types using heuristics.
public NativeQuery<T>
setProperties(Map<K, V>
a java.util.Map
bean
)

Redeclares org.hibernate.query.Query.setProperties, org.hibernate.SQLQuery.setProperties.

Deprecated as a consequence of NativeQuery being deprecated.
Bind the values of the given Map for each named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.
public NativeQuery<T>
setReadOnly(boolean
true indicates that entities and proxies loaded by the query are to be put in read-only mode; false indicates that entities and proxies loaded by the query will be put in modifiable mode
readOnly
)

Redeclares org.hibernate.query.Query.setReadOnly, org.hibernate.SQLQuery.setReadOnly.

Deprecated as a consequence of NativeQuery being deprecated.
Set the read-only/modifiable mode for entities and proxies loaded by this Query.
public NativeQuery<T>
setResultSetMapping(String
The name of the mapping to use.
name
)

Redeclares org.hibernate.SQLQuery.setResultSetMapping.

Deprecated as a consequence of NativeQuery being deprecated.
Use a predefined named result-set mapping.
public NativeQuery<T>
setTimeout(int
the timeout in seconds
timeout
)

Redeclares org.hibernate.query.Query.setTimeout, org.hibernate.SQLQuery.setTimeout.

Deprecated as a consequence of NativeQuery being deprecated.
Set the query timeout in seconds.
Inherited from org.hibernate.query.Query:
applyFetchGraphapplyGraphapplyLoadGraphgetCacheModegetCacheRegiongetCommentgetFetchSizegetHibernateFlushModegetLockOptionsgetParameterMetadatagetProducergetQueryStringgetResultListgetResultStreamgetSingleResultlistscrollscrollsetBigDecimalsetBigDecimalsetBigIntegersetBigIntegersetBinarysetBinarysetBooleansetBooleansetBytesetBytesetCalendarsetCalendarsetCalendarDatesetCalendarDatesetCharactersetCharactersetDatesetDatesetDoublesetDoublesetEntitysetEntitysetFloatsetFloatsetIntegersetIntegersetLocalesetLocalesetLongsetLongsetParameterssetResultTransformersetSerializablesetSerializablesetShortsetShortsetStringsetStringsetTextsetTextsetTimesetTimesetTimestampsetTimestampstreamuniqueResultuniqueResultOptional
Inherited from org.hibernate.SQLQuery:
getQueryReturns
Inherited from org.hibernate.SynchronizeableQuery:
addSynchronizedEntityClassaddSynchronizedEntityNameaddSynchronizedQuerySpaceaddSynchronizedTableaddSynchronizedTablegetSynchronizedQuerySpaces