# HG changeset patch # User Marco Lechner, Bundesamt fuer Strahlenschutz, SW 2.1 # Date 1436962622 -7200 # Node ID e50c7f2f864d1fb1a565762a1c3ba828eeebaee4 # Parent db7866a95cd27907a298a024ea927570077dad31 fixed lower case search field diff -r db7866a95cd2 -r e50c7f2f864d src/main/java/de/intevation/lada/util/data/QueryBuilder.java --- a/src/main/java/de/intevation/lada/util/data/QueryBuilder.java Tue Jul 14 17:02:27 2015 +0200 +++ b/src/main/java/de/intevation/lada/util/data/QueryBuilder.java Wed Jul 15 14:17:02 2015 +0200 @@ -102,7 +102,7 @@ */ public QueryBuilder andLike(String id, String value) { Path path = this.root.get(id); - Predicate p = this.builder.like(this.builder.lower(path), value); + Predicate p = this.builder.like(this.builder.lower(path), value.toLowerCase()); if (this.filter != null) { this.filter = this.builder.and(this.filter, p); } @@ -139,7 +139,7 @@ */ public QueryBuilder orLike(String id, String value) { Path path = this.root.get(id); - Predicate p = this.builder.like(this.builder.lower(path), value); + Predicate p = this.builder.like(this.builder.lower(path), value.toLowerCase()); if (this.filter != null) { this.filter = this.builder.or(this.filter, p); }