public abstract class AbstractJpaQueryProvider extends java.lang.Object implements JpaQueryProvider, org.springframework.beans.factory.InitializingBean
Abstract JPA Query Provider to serve as a base class for all JPA
Query
providers.
Constructor and Description |
---|
AbstractJpaQueryProvider() |
Modifier and Type | Method and Description |
---|---|
protected javax.persistence.EntityManager |
getEntityManager()
Getter for
EntityManager |
void |
setEntityManager(javax.persistence.EntityManager entityManager)
Public setter to override the entityManager that was created by this
HibernateQueryProvider . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createQuery
public void setEntityManager(javax.persistence.EntityManager entityManager)
Public setter to override the entityManager that was created by this
HibernateQueryProvider
. This is currently needed to allow
HibernateQueryProvider
to participate in a user's managed transaction.
setEntityManager
in interface JpaQueryProvider
entityManager
- EntityManager to useprotected javax.persistence.EntityManager getEntityManager()
Getter for EntityManager
EntityManager