Redesigning E/R instance definition
This commit is contained in:
parent
60ef7ae655
commit
d170e1707d
|
@ -11,7 +11,7 @@ import org.gcube.informationsystem.model.reference.properties.Metadata;
|
||||||
*/
|
*/
|
||||||
public interface IdentifiableElement extends Element {
|
public interface IdentifiableElement extends Element {
|
||||||
|
|
||||||
public static final String UUID_PROPERTY = "@uuid";
|
public static final String UUID_PROPERTY = "uuid";
|
||||||
public static final String METADATA_PROPERTY = "@metadata";
|
public static final String METADATA_PROPERTY = "@metadata";
|
||||||
|
|
||||||
public UUID getUUID();
|
public UUID getUUID();
|
||||||
|
|
|
@ -3,6 +3,7 @@ package org.gcube.informationsystem.model.impl.properties;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
|
||||||
import org.gcube.informationsystem.base.reference.Element;
|
import org.gcube.informationsystem.base.reference.Element;
|
||||||
|
import org.gcube.informationsystem.base.reference.IdentifiableElement;
|
||||||
import org.gcube.informationsystem.model.reference.entities.Facet;
|
import org.gcube.informationsystem.model.reference.entities.Facet;
|
||||||
import org.gcube.informationsystem.model.reference.entities.Resource;
|
import org.gcube.informationsystem.model.reference.entities.Resource;
|
||||||
import org.gcube.informationsystem.model.reference.properties.PropagationConstraint;
|
import org.gcube.informationsystem.model.reference.properties.PropagationConstraint;
|
||||||
|
@ -129,15 +130,15 @@ public class PropagationConstraintTest {
|
||||||
"\"" + ConsistsOf.PROPAGATION_CONSTRAINT_PROPERTY + "\":"+ pcString + "," +
|
"\"" + ConsistsOf.PROPAGATION_CONSTRAINT_PROPERTY + "\":"+ pcString + "," +
|
||||||
"\"" + ConsistsOf.METADATA_PROPERTY + "\": " + hString + "," +
|
"\"" + ConsistsOf.METADATA_PROPERTY + "\": " + hString + "," +
|
||||||
"\"" + ConsistsOf.SOURCE_PROPERTY + "\":{" +
|
"\"" + ConsistsOf.SOURCE_PROPERTY + "\":{" +
|
||||||
"\"@uuid\":\"4a971915-ca90-48cf-9975-63ee2dd28605\"," +
|
"\"" + IdentifiableElement.UUID_PROPERTY + "\":\"4a971915-ca90-48cf-9975-63ee2dd28605\"," +
|
||||||
"\"@class\":\"MyEService\"," +
|
"\"" + Element.CLASS_PROPERTY + "\":\"MyEService\"," +
|
||||||
"\"@superClasses\":[\"EService\", \"Service\", \"Resource\"]," +
|
"\"" + Element.SUPERCLASSES_PROPERTY + "\":[\"EService\", \"Service\", \"Resource\"]," +
|
||||||
"\"" + ConsistsOf.METADATA_PROPERTY + "\": " + hString +
|
"\"" + ConsistsOf.METADATA_PROPERTY + "\": " + hString +
|
||||||
"}," +
|
"}," +
|
||||||
"\"" + ConsistsOf.TARGET_PROPERTY + "\":{" +
|
"\"" + ConsistsOf.TARGET_PROPERTY + "\":{" +
|
||||||
"\"@uuid\":\"3ace4bd0-e5cd-49a3-97a8-a0a9468ce6d4\"," +
|
"\"" + IdentifiableElement.UUID_PROPERTY + "\":\"3ace4bd0-e5cd-49a3-97a8-a0a9468ce6d4\"," +
|
||||||
"\"@class\":\"MySoftwareFacet\"," +
|
"\"" + Element.CLASS_PROPERTY + "\":\"MySoftwareFacet\"," +
|
||||||
"\"@superClasses\":[\"SoftwareFacet\", \"Facet\"]," +
|
"\"" + Element.SUPERCLASSES_PROPERTY + "\":[\"SoftwareFacet\", \"Facet\"]," +
|
||||||
"\"" + ConsistsOf.METADATA_PROPERTY + "\": " + hString + "," +
|
"\"" + ConsistsOf.METADATA_PROPERTY + "\": " + hString + "," +
|
||||||
"\"name\":\"WhnManager\"," +
|
"\"name\":\"WhnManager\"," +
|
||||||
"\"group\":\"VREManagement\"," +
|
"\"group\":\"VREManagement\"," +
|
||||||
|
|
Loading…
Reference in New Issue