Redesigning E/R instance definition
This commit is contained in:
parent
55e6951557
commit
999bbb1ab1
|
@ -128,7 +128,9 @@ public class ContextManagement extends EntityElementManagement<Context, EntityTy
|
||||||
select.append(getName());
|
select.append(getName());
|
||||||
select.append("\"");
|
select.append("\"");
|
||||||
select.append(QueryLogicalOperator.AND.getLogicalOperator());
|
select.append(QueryLogicalOperator.AND.getLogicalOperator());
|
||||||
|
select.append("\'");
|
||||||
select.append(IdentifiableElement.UUID_PROPERTY);
|
select.append(IdentifiableElement.UUID_PROPERTY);
|
||||||
|
select.append("\'");
|
||||||
select.append(QueryConditionalOperator.NE.getConditionalOperator());
|
select.append(QueryConditionalOperator.NE.getConditionalOperator());
|
||||||
select.append("\"");
|
select.append("\"");
|
||||||
select.append(parentContext.uuid);
|
select.append(parentContext.uuid);
|
||||||
|
|
|
@ -97,8 +97,8 @@ public class Utility {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO Rewrite using Gremlin
|
// TODO Rewrite using Gremlin
|
||||||
String select = "SELECT FROM " + elementType + " WHERE " + IdentifiableElement.UUID_PROPERTY
|
String select = "SELECT FROM " + elementType + " WHERE '" + IdentifiableElement.UUID_PROPERTY
|
||||||
+ " = \"" + uuid.toString() + "\"";
|
+ "' = \"" + uuid.toString() + "\"";
|
||||||
|
|
||||||
OResultSet resultSet = oDatabaseDocument.query(select, new HashMap<>());
|
OResultSet resultSet = oDatabaseDocument.query(select, new HashMap<>());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue