[Lada-commits] [PATCH 1 of 2] fixed lower case search field
Wald Commits
scm-commit at wald.intevation.org
Wed Jul 15 14:25:05 CEST 2015
# HG changeset patch
# User Marco Lechner, Bundesamt fuer Strahlenschutz, SW 2.1 <mlechner at bfs.de>
# 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<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);
}
More information about the Lada-commits
mailing list