package app.data.service;
|
|
|
|
import app.data.entity.SamplePerson;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.vaadin.artur.helpers.CrudService;
|
|
|
|
@Service
|
|
public class SamplePersonService extends CrudService<SamplePerson, Integer> {
|
|
|
|
private SamplePersonRepository repository;
|
|
|
|
public SamplePersonService(@Autowired SamplePersonRepository repository) {
|
|
this.repository = repository;
|
|
}
|
|
|
|
@Override
|
|
protected SamplePersonRepository getRepository() {
|
|
return repository;
|
|
}
|
|
|
|
}
|