Exemple #1
0
 @Override
 public void save(User user) {
   userRepository.save(user);
 }
Exemple #2
0
 @Override
 public User insert(User t) {
   return userRepository.save(t);
 }
Exemple #3
0
 @Override
 public void delete(User t) {
   userRepository.delete(t);
 }
Exemple #4
0
 @Override
 public User update(User t) {
   return userRepository.save(t);
 }
Exemple #5
0
 @Override
 public User findByLogin(String login) {
   return userRepository.findByLogin(login);
 }
Exemple #6
0
 @Override
 public List<User> findByCityAndTypeUser(City city, TypeUser typeUser) {
   return userRepository.findByCityAndTypeUser(city, typeUser);
 }
Exemple #7
0
 @Transactional(readOnly = true)
 public List<User> findAll() {
   return (List<User>) userRepository.findAll();
 }
Exemple #8
0
 @Transactional(readOnly = true)
 public User findOne(Long userId) {
   return userRepository.findOne(userId);
 }