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

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

    return adminDao.get(id);
  }