changeset 708:e50c7f2f864d

fixed lower case search field
author Marco Lechner, Bundesamt fuer Strahlenschutz, SW 2.1 <mlechner@bfs.de>
date Wed, 15 Jul 2015 14:17:02 +0200
parents db7866a95cd2
children e502e1af6256
files src/main/java/de/intevation/lada/util/data/QueryBuilder.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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<T> andLike(String id, String value) {
         Path<String> 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<T> orLike(String id, String value) {
         Path<String> 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);
         }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)