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