E
- entity returned by executing the querypublic class JpaNativeQueryProvider<E> extends AbstractJpaQueryProvider
This query provider creates JPA 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 |
---|
JpaNativeQueryProvider() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
javax.persistence.Query |
createQuery()
Create the query object.
|
void |
setEntityClass(java.lang.Class<E> entityClazz) |
void |
setSqlQuery(java.lang.String sqlQuery) |
getEntityManager, setEntityManager
public javax.persistence.Query createQuery()
JpaQueryProvider
Create the query object.
public void setSqlQuery(java.lang.String sqlQuery)
public void setEntityClass(java.lang.Class<E> entityClazz)
public void afterPropertiesSet() throws java.lang.Exception
java.lang.Exception