Skip to content

Commit 4cf8a26

Browse files
committed
feat: include conditions on neo4jquery builder
Signed-off-by: Otavio Santana <[email protected]>
1 parent 368ceb1 commit 4cf8a26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jnosql-neo4j/src/main/java/org/eclipse/jnosql/databases/neo4j/communication/Neo4JQueryBuilder.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ private void createWhereClause(StringBuilder cypher, CriteriaCondition condition
106106
case LESSER_THAN:
107107
case LESSER_EQUALS_THAN:
108108
case LIKE:
109+
case STARTS_WITH:
110+
case ENDS_WITH:
111+
case CONTAINS:
109112
case IN:
110113
String paramName = INTERNAL_ID.equals(fieldName) ? "id" : fieldName; // Ensure valid parameter name
111114
parameters.put(paramName, element.get());
@@ -121,7 +124,8 @@ private void createWhereClause(StringBuilder cypher, CriteriaCondition condition
121124
case AND:
122125
case OR:
123126
cypher.append("(");
124-
List<CriteriaCondition> conditions = element.get(new TypeReference<>() {});
127+
List<CriteriaCondition> conditions = element.get(new TypeReference<>() {
128+
});
125129
for (int index = 0; index < conditions.size(); index++) {
126130
if (index > 0) {
127131
cypher.append(" ").append(getConditionOperator(condition.condition())).append(" ");

0 commit comments

Comments
 (0)