Fix recursive scan

This commit is contained in:
Fabio Sinibaldi 2022-11-22 14:57:44 +01:00
parent 633cf8ee5c
commit e58c3009e9
1 changed files with 2 additions and 1 deletions

View File

@ -266,6 +266,7 @@ public class ConcessioniLifeCycleManager extends Default3PhaseManager implements
private static void scanRelation(ArrayList chain,RelationshipNavigationObject obj, boolean putBefore){
if(putBefore)chain.add(0,obj.getTarget());
else chain.add(obj.getTarget());
if(obj.getChildren()!=null && !obj.getChildren().isEmpty())scanRelation(chain,obj,putBefore);
if(obj.getChildren()!=null)
obj.getChildren().forEach(r-> scanRelation(chain,r,putBefore));
}
}