Beispiel #1
0
 @Override
 public Pager<User> findByPage() {
   // TODO Auto-generated method stub
   String hql = "from User";
   return userDao.find(hql);
 }
Beispiel #2
0
 @Override
 public User getUserByNameAndPassword(Object[] args) {
   // TODO Auto-generated method stub
   return userDao.getUserByNameAndPassword(args);
 }
Beispiel #3
0
 @Override
 public List<User> list() {
   // TODO Auto-generated method stub
   String hql = "from User";
   return userDao.list(hql);
 }
Beispiel #4
0
 @Override
 public User load(int id) {
   // TODO Auto-generated method stub
   return userDao.load(id);
 }
Beispiel #5
0
 @Override
 public void update(User user) {
   // TODO Auto-generated method stub
   userDao.update(user);
 }
Beispiel #6
0
 @Override
 public void delete(int id) {
   // TODO Auto-generated method stub
   userDao.delete(id);
 }
Beispiel #7
0
 @Override
 public void add(User user) {
   // TODO Auto-generated method stub
   userDao.add(user);
 }