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