# HG changeset patch # User Raimund Renkert # Date 1373023288 -7200 # Node ID 82f34d52be0bdeed6658832028932b10623d293f # Parent 861b41fde0308c0a017a0d0175b32295f94537b9 Allow objects in queries instead of strings. diff -r 861b41fde030 -r 82f34d52be0b src/main/java/de/intevation/lada/data/QueryBuilder.java --- a/src/main/java/de/intevation/lada/data/QueryBuilder.java Thu Jul 04 17:24:03 2013 +0200 +++ b/src/main/java/de/intevation/lada/data/QueryBuilder.java Fri Jul 05 13:21:28 2013 +0200 @@ -51,7 +51,7 @@ * @param value The filter value * @return The builder itself. */ - public QueryBuilder and(String id, String value) { + public QueryBuilder and(String id, Object value) { Predicate p = this.builder.equal(this.root.get(id), value); if (this.filter != null) { this.filter = this.builder.and(this.filter, p); @@ -69,7 +69,7 @@ * @param value The filter value. * @return The builder itself. */ - public QueryBuilder or(String id, String value) { + public QueryBuilder or(String id, Object value) { Predicate p = this.builder.equal(this.root.get(id), value); if (this.filter != null) { this.filter = this.builder.or(this.filter, p);