Class AbstractDaoService<E extends PersistentObject,​D extends GenericHibernateDao<E,​Integer>>

    • Field Detail

      • logger

        protected static final org.apache.logging.log4j.Logger logger
        The LOGGER instance (that will be available in all subclasses)
    • Constructor Detail

      • AbstractDaoService

        protected AbstractDaoService​(Class<E> entityClass)
        Constructor that sets the concrete entity class for the service. Subclasses MUST call this constructor.
    • Method Detail

      • getDao

        public D getDao()
        Returns:
        the dao
      • setDao

        public 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.
        Parameters:
        dao - the dao to set
      • getEntityClass

        public Class<E> getEntityClass()
        Returns:
        the entityClass