@Service(value="permissionCollectionService") public class PermissionCollectionService<E extends PermissionCollection,D extends PermissionCollectionDao<E>> extends AbstractCrudService<E,D>
PermissionCollection model.AbstractCrudServicedao, logger| Modifier | Constructor and Description |
|---|---|
|
PermissionCollectionService()
Default constructor, which calls the type-constructor
|
protected |
PermissionCollectionService(Class<E> entityClass)
Constructor that sets the concrete entity class for the service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setDao(D dao)
We have to use
Qualifier to define the correct dao here. |
delete, findAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById, saveOrUpdate, updatePartialWithJsonNodegetDao, getEntityClasspublic PermissionCollectionService()
@Autowired @Qualifier(value="permissionCollectionDao") public void setDao(D dao)
Qualifier to define the correct dao here.
Otherwise, spring can not decide which dao has to be autowired here
as there are multiple candidates.setDao in class AbstractDaoService<E extends PermissionCollection,D extends PermissionCollectionDao<E>>dao - the dao to setCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.