public User login(String name, String password) { return userDao.login(name, password); }
public boolean updateUser(User user) { return userDao.updateUser(user); }
public boolean reg(User user) { return userDao.reg(user); }
public boolean addFriend(User user1, User user2) { return userDao.addFriend(user1, user2); }
public boolean removeFriend(User user1, User user2) { return userDao.removeFriend(user1, user2); }
@Override @Transactional public User findByLogin(String login) { return resource.findByLogin(login); }
@Override @Transactional public void update(User user) { resource.update(user); }
@Override @Transactional public User create(User user) { resource.create(user); return user; }
@Override @Transactional public void delete(long id) { resource.delete(id); }
@Override @Transactional public List<User> findAll() { return resource.findAll(); }