31 lines
818 B
Java
31 lines
818 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;
|
|
import com.vaadin.fusion.Nonnull;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
import java.util.Set;
|
|
import javax.persistence.ElementCollection;
|
|
import javax.persistence.FetchType;
|
|
import com.cubetiqs.fusion.data.Role;
|
|
import javax.persistence.Lob;
|
|
|
|
@Service
|
|
public class UserService extends CrudService<User, Integer> {
|
|
|
|
private UserRepository repository;
|
|
|
|
public UserService(@Autowired UserRepository repository) {
|
|
this.repository = repository;
|
|
}
|
|
|
|
@Override
|
|
protected UserRepository getRepository() {
|
|
return repository;
|
|
}
|
|
|
|
}
|