hql domain object quiery
query for AH