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