@Transactional(value="transactionManager") public abstract class AbstractDaoService<E extends PersistentObject,D extends GenericHibernateDao<E,Integer>> extends Object
E (and a logger).| Modifier and Type | Field and Description |
|---|---|
protected D |
dao
The data access object
|
protected static org.apache.logging.log4j.Logger |
logger
The LOGGER instance (that will be available in all subclasses)
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDaoService(Class<E> entityClass)
Constructor that sets the concrete entity class for the service.
|
| Modifier and Type | Method and Description |
|---|---|
D |
getDao() |
Class<E> |
getEntityClass() |
abstract void |
setDao(D dao)
Subclasses must implement this class and annotate it with
Autowired and Qualifier! This is necessary as there may
be multiple candidates to autowire (due to hierarchy) and we have to
configure the correct ones. |
protected static final org.apache.logging.log4j.Logger logger
protected D extends GenericHibernateDao<E,Integer> dao
public D getDao()
public abstract void setDao(D dao)
Autowired and Qualifier! This is necessary as there may
be multiple candidates to autowire (due to hierarchy) and we have to
configure the correct ones.dao - the dao to setCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.