T - the generic type of the entity objectPK - the generic type of the primary keypublic interface EntityManagerDao<T extends BaseEntity<PK>,PK extends Serializable> extends GenericDao<T,PK>
EntityManagerDao.| Modifier and Type | Method and Description |
|---|---|
void |
create(T entity)
Persists the given entity.
|
EntityManager |
getEntityManager()
Gets the entity manager.
|
Query |
getQuery(String hqlQuery)
Gets a
Query from the given hql query. |
void |
setEntityManager(EntityManager entityManager)
Sets the entity manager.
|
void create(T entity)
entity - the entityEntityManager getEntityManager()
Query getQuery(String hqlQuery)
Query from the given hql query.hqlQuery - the hql queryQueryvoid setEntityManager(EntityManager entityManager)
entityManager - the new entity managerCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.