Class LayoutService<E extends Layout,​D extends LayoutDao<E>>

    • Constructor Detail

      • LayoutService

        public LayoutService()
        Default constructor, which calls the type-constructor
      • LayoutService

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

      • setDao

        @Autowired
        @Qualifier("layoutDao")
        public void setDao​(D dao)
        We have to use Qualifier to define the correct dao here. Otherwise, spring can not decide which dao has to be autowired here as there are multiple candidates.
        Overrides:
        setDao in class PermissionAwareCrudService<E extends Layout,​D extends LayoutDao<E>>
        Parameters:
        dao - the dao to set