@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 org.apache.logging.log4j.Logger |
LOG
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! |
protected final org.apache.logging.log4j.Logger LOG
protected D extends GenericHibernateDao<E,Integer> dao
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 setpublic D getDao()
Copyright © 2019 terrestris GmbH & Co. KG. All rights reserved.