1
0
Fork 0

[openorgs] mapping parent/child relations without massaging the semantic labels

This commit is contained in:
Claudio Atzori 2022-05-09 16:06:04 +02:00
parent d660895b30
commit 2a8e0fb72f
1 changed files with 1 additions and 4 deletions

View File

@ -711,10 +711,7 @@ public class MigrateDbEntitiesApplication extends AbstractMigrationApplication i
final Relation r = new Relation();
r.setRelType(ORG_ORG_RELTYPE);
r.setSubRelType(ModelConstants.RELATIONSHIP);
r
.setRelClass(
rs.getString("type").equalsIgnoreCase("parent") ? ModelConstants.IS_PARENT_OF
: ModelConstants.IS_CHILD_OF);
r.setRelClass(rs.getString("type"));
r.setSource(orgId1);
r.setTarget(orgId2);
r.setCollectedfrom(collectedFrom);