Пример #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);
  }