Graph model footprint optimisation #23
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue