示例#1
0
  public UAdmin getAdminByUsername(String username) {
    String hql = "from UAdmin where username = ?";

    return (UAdmin) adminDao.findUnique(hql, username);
  }
示例#2
0
  public UAdmin getAdmin(int id) {

    return adminDao.get(id);
  }