Fix recursive scan
This commit is contained in:
parent
633cf8ee5c
commit
e58c3009e9
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue