Mercurial > lada > lada-server
changeset 349:c26fcf442353 0.4
Fixed sql statement for messmethode/messgroesse validation.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Mon, 02 Sep 2013 13:13:06 +0200 |
parents | 4612c43127b6 |
children | 7228478999d1 |
files | src/main/java/de/intevation/lada/validation/LMessungValidator.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/validation/LMessungValidator.java Fri Aug 30 12:58:45 2013 +0200 +++ b/src/main/java/de/intevation/lada/validation/LMessungValidator.java Mon Sep 02 13:13:06 2013 +0200 @@ -135,7 +135,7 @@ .and("probeId", messung.getProbeId()); Response response = messwertRepository.filter(builder.getQuery()); List<LMesswert> messwerte = (List<LMesswert>)response.getData(); - String query = "select messgroesse_id from S_mmt_messgroesse where mmt_id = " + mmt; + String query = "select messgroesse_id from \"S_mmt_messgroesse\" where mmt_id = '" + mmt + "'"; List<Object[]> results = readonlyRepository.getEntityManager().createNativeQuery(query).getResultList(); for(LMesswert messwert: messwerte) { boolean hit = false;