E
- entity returned by executing the querypublic class HibernateNativeQueryProvider<E> extends AbstractHibernateQueryProvider
This query provider creates Hibernate Query
s from injected native SQL
queries. This is useful if there is a need to utilize database-specific
features such as query hints, the CONNECT keyword in Oracle, etc.
Constructor and Description |
---|
HibernateNativeQueryProvider() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.hibernate.SQLQuery |
createQuery()
Create an
SQLQuery from the session provided (preferring
stateless if both are available). |
void |
setEntityClass(Class<E> entityClazz) |
void |
setSqlQuery(String sqlQuery) |
getStatefulSession, getStatelessSession, isStatelessSession, setSession, setStatelessSession
public org.hibernate.SQLQuery createQuery()
Create an SQLQuery
from the session provided (preferring
stateless if both are available).
public void setSqlQuery(String sqlQuery)
Copyright © 2014 Pivotal. All rights reserved.