@Override public void save(User user) { userRepository.save(user); }
@Override public User insert(User t) { return userRepository.save(t); }
@Override public void delete(User t) { userRepository.delete(t); }
@Override public User update(User t) { return userRepository.save(t); }
@Override public User findByLogin(String login) { return userRepository.findByLogin(login); }
@Override public List<User> findByCityAndTypeUser(City city, TypeUser typeUser) { return userRepository.findByCityAndTypeUser(city, typeUser); }
@Transactional(readOnly = true) public List<User> findAll() { return (List<User>) userRepository.findAll(); }
@Transactional(readOnly = true) public User findOne(Long userId) { return userRepository.findOne(userId); }