예제 #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();
 }