Mercurial > lada > lada-server
changeset 230:82f34d52be0b
Allow objects in queries instead of strings.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 05 Jul 2013 13:21:28 +0200 |
parents | 861b41fde030 |
children | 9dae52dd8157 |
files | src/main/java/de/intevation/lada/data/QueryBuilder.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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<T> and(String id, String value) { + public QueryBuilder<T> 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<T> or(String id, String value) { + public QueryBuilder<T> 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);