Пример #1
0
 public User get(int userId) {
   return userDao.get(userId);
 }
Пример #2
0
 public User getUserByUserNameAndPassword(String userName, String password) {
   User user = userDao.getUserByUserName(userName);
   return (user != null && user.getPassword().equals(password)) ? user : null;
 }
Пример #3
0
  public void save(User user) {

    log.debug("Entered save");
    userDao.save(user);
  }