public abstract class AbstractJPADao<T,ID extends Serializable> extends Object implements IDao<T,ID>
Modifier | Constructor and Description |
---|---|
protected |
AbstractJPADao(com.google.inject.Provider<javax.persistence.EntityManager> entityManager) |
@Inject protected AbstractJPADao(com.google.inject.Provider<javax.persistence.EntityManager> entityManager)
public void delete(T entity)
delete
in interface IDao<T,ID extends Serializable>
public boolean exists(ID id)
exists
in interface IDao<T,ID extends Serializable>
public long count()
count
in interface IDao<T,ID extends Serializable>
public javax.persistence.EntityManager getEntityManager()
Copyright © 2017. All rights reserved.