22 lines
566 B
Java
22 lines
566 B
Java
package com.cubetiqs.fusion.data.service;
|
|
|
|
import com.cubetiqs.fusion.data.entity.User;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.vaadin.artur.helpers.CrudService;
|
|
|
|
@Service
|
|
public class UserService extends CrudService<User, Integer> {
|
|
private final UserRepository repository;
|
|
|
|
public UserService(@Autowired UserRepository repository) {
|
|
this.repository = repository;
|
|
}
|
|
|
|
@Override
|
|
protected UserRepository getRepository() {
|
|
return repository;
|
|
}
|
|
|
|
}
|