
de.terrestris.shogun2.converter.ModuleIdResolver Maven / Gradle / Ivy
The newest version!
package de.terrestris.shogun2.converter;
import de.terrestris.shogun2.dao.ModuleDao;
import de.terrestris.shogun2.model.module.Module;
import de.terrestris.shogun2.service.ModuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
/**
* An ID resolver for {@link Module}s when deserializing only on the base of ID values. Based on a given ID, this
* resolver will load the whole entity from the database. Extends the default implementation.
*
* @author Andre Henn
*/
public class ModuleIdResolver, S extends ModuleService> extends
PersistentObjectIdResolver {
@Override
@Autowired
@Qualifier("moduleService")
public void setService(S service) {
this.service = service;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy