Пример #1
0
 public User login(String name, String password) {
   return userDao.login(name, password);
 }
Пример #2
0
 public boolean updateUser(User user) {
   return userDao.updateUser(user);
 }
Пример #3
0
 public boolean reg(User user) {
   return userDao.reg(user);
 }
Пример #4
0
 public boolean addFriend(User user1, User user2) {
   return userDao.addFriend(user1, user2);
 }
Пример #5
0
 public boolean removeFriend(User user1, User user2) {
   return userDao.removeFriend(user1, user2);
 }
Пример #6
0
 @Override
 @Transactional
 public User findByLogin(String login) {
   return resource.findByLogin(login);
 }
Пример #7
0
 @Override
 @Transactional
 public void update(User user) {
   resource.update(user);
 }
Пример #8
0
 @Override
 @Transactional
 public User create(User user) {
   resource.create(user);
   return user;
 }
Пример #9
0
 @Override
 @Transactional
 public void delete(long id) {
   resource.delete(id);
 }
Пример #10
0
 @Override
 @Transactional
 public List<User> findAll() {
   return resource.findAll();
 }