class Organization extends Party {

    public List<Department> listChildDepartments() {
        String jpql = "select c from OrgLineMgmt o join o.responsible c " +
                "where o.commissioner = :commissioner and TYPE(c) = Department";
        return getRepository().createJpqlQuery(jpql).addParameter("commissioner", this).list();
    }

    public  Organization();
    public  Organization(String name);

}