public Collection < QProfileDto > selectDescendants ( DbSession dbSession , Collection < QProfileDto > profiles ) { if ( profiles . isEmpty ( ) ) { return emptyList ( ) ; } Collection < QProfileDto > children = selectChildren ( dbSession , profiles ) ; List < QProfileDto > descendants = new ArrayList <> ( children ) ; descendants . addAll ( selectDescendants ( dbSession , children ) ) ; return descendants ; }
All descendants in any order . The specified profiles are not included into results .