Commit 5cee3ba91d916aa18457b4c6e762c5e8a2e0320b
Committed by
Andrew Shvayka
1 parent
45741384
Ignore case filter fix for entityType
Showing
1 changed file
with
5 additions
and
2 deletions
@@ -427,9 +427,12 @@ public class EntityKeyMapping { | @@ -427,9 +427,12 @@ public class EntityKeyMapping { | ||
427 | } else if (predicate.getType().equals(FilterPredicateType.STRING)) { | 427 | } else if (predicate.getType().equals(FilterPredicateType.STRING)) { |
428 | if (key.getKey().equals("entityType") && !filterType.equals(EntityFilterType.RELATIONS_QUERY)){ | 428 | if (key.getKey().equals("entityType") && !filterType.equals(EntityFilterType.RELATIONS_QUERY)){ |
429 | field = ctx.getEntityType().toString(); | 429 | field = ctx.getEntityType().toString(); |
430 | + return this.buildStringPredicateQuery(ctx, field, (StringFilterPredicate) predicate) | ||
431 | + .replace("lower(" + field, "lower('" + field + "'") | ||
432 | + .replace(field + " ","'" + field + "' "); | ||
433 | + } else { | ||
434 | + return this.buildStringPredicateQuery(ctx, field, (StringFilterPredicate) predicate); | ||
430 | } | 435 | } |
431 | - return this.buildStringPredicateQuery(ctx, field, (StringFilterPredicate) predicate) | ||
432 | - .replace(field + " ","'" + field + "' "); | ||
433 | } else { | 436 | } else { |
434 | return this.buildBooleanPredicateQuery(ctx, field, (BooleanFilterPredicate) predicate); | 437 | return this.buildBooleanPredicateQuery(ctx, field, (BooleanFilterPredicate) predicate); |
435 | } | 438 | } |