Example #1
0
 @Override
 public User customMethod(String username) {
   return userRepository.customMethod(username);
 }
Example #2
0
 @Override
 public User getUser(long userId) {
   return userRepository.findOne(userId);
 }
Example #3
0
 @Override
 public User findByUsername(String username) {
   return userRepository.findByUsername(username).get(0);
 }
Example #4
0
 @Override
 public User save(User user) {
   return userRepository.save(user);
 }