Пример #1
0
  public User save(User user) {

    if (user.getId() == DEFUALT_ID) {
      user.setCreateDate(new Date());
      user.setModifyDate(new Date());
    }

    return userRepository.save(user);
  }
Пример #2
0
 public User findByFacebookUserId(String facebookUserId) {
   return userRepository.findByFacebookUserId(facebookUserId);
 }