Added organizazionOrganization to RELTYPE

This commit is contained in:
Sandro La Bruzzo 2023-05-09 10:01:25 +02:00
parent 3e0159dcd4
commit 2d0c317137
1 changed files with 9 additions and 4 deletions

View File

@ -19,9 +19,8 @@ public class Relation extends Oaf implements Serializable {
resultProject,
resultOrganization,
projectOrganization,
datasourceOrganization
//TODO organizationOrganization ????
datasourceOrganization,
organizationOrganization;
}
public enum SUBRELTYPE {
@ -97,6 +96,7 @@ public class Relation extends Oaf implements Serializable {
Obsoletes,
Reviews,
isSimilarTo,
isDifferentFrom,
produces;
public static boolean exists(String relclass) {
@ -119,6 +119,7 @@ public class Relation extends Oaf implements Serializable {
case isMergedIn:
case merges:
case isSimilarTo:
case isDifferentFrom:
return SUBRELTYPE.dedup;
case isProducedBy:
case produces:
@ -288,6 +289,10 @@ public class Relation extends Oaf implements Serializable {
return IsReviewedBy;
case produces:
return isProducedBy;
case isSimilarTo:
return isSimilarTo;
case isDifferentFrom:
return isDifferentFrom;
}
// makes the compiler happy
throw new IllegalArgumentException("missing inverse mapping for" + this);