Redesigning E/R instance definition

This commit is contained in:
Luca Frosini 2023-04-19 16:49:06 +02:00
parent 55e6951557
commit 999bbb1ab1
2 changed files with 4 additions and 2 deletions

View File

@ -128,7 +128,9 @@ public class ContextManagement extends EntityElementManagement<Context, EntityTy
select.append(getName());
select.append("\"");
select.append(QueryLogicalOperator.AND.getLogicalOperator());
select.append("\'");
select.append(IdentifiableElement.UUID_PROPERTY);
select.append("\'");
select.append(QueryConditionalOperator.NE.getConditionalOperator());
select.append("\"");
select.append(parentContext.uuid);

View File

@ -97,8 +97,8 @@ public class Utility {
}
// TODO Rewrite using Gremlin
String select = "SELECT FROM " + elementType + " WHERE " + IdentifiableElement.UUID_PROPERTY
+ " = \"" + uuid.toString() + "\"";
String select = "SELECT FROM " + elementType + " WHERE '" + IdentifiableElement.UUID_PROPERTY
+ "' = \"" + uuid.toString() + "\"";
OResultSet resultSet = oDatabaseDocument.query(select, new HashMap<>());