de.terrestris.shoguncore.service.WpsReferenceService Maven / Gradle / Ivy
package de.terrestris.shoguncore.service;
import de.terrestris.shoguncore.dao.WpsReferenceDao;
import de.terrestris.shoguncore.model.wps.WpsReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
/**
* Service class for the {@link WpsReference} model.
*
* @author Nils Bühner
* @see AbstractCrudService
*/
@Service("wpsReferenceService")
public class WpsReferenceService> extends
WpsParameterService {
/**
* Default constructor, which calls the type-constructor
*/
@SuppressWarnings("unchecked")
public WpsReferenceService() {
this((Class) WpsReference.class);
}
/**
* Constructor that sets the concrete entity class for the service.
* Subclasses MUST call this constructor.
*/
protected WpsReferenceService(Class entityClass) {
super(entityClass);
}
/**
* We have to use {@link Qualifier} to define the correct dao here.
* Otherwise, spring can not decide which dao has to be autowired here
* as there are multiple candidates.
*/
@Override
@Autowired
@Qualifier("wpsReferenceDao")
public void setDao(D dao) {
this.dao = dao;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy