Mercurial > lada > lada-server
changeset 396:6ba7630c7e52
Fixed data type in database request.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 16 Dec 2013 11:23:40 +0100 |
parents | 479728d36809 |
children | 414534a2c23d |
files | src/main/java/de/intevation/lada/validation/LMessungValidator.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/validation/LMessungValidator.java Mon Dec 16 11:22:56 2013 +0100 +++ b/src/main/java/de/intevation/lada/validation/LMessungValidator.java Mon Dec 16 11:23:40 2013 +0100 @@ -136,11 +136,11 @@ 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 + "'"; - List<Object[]> results = readonlyRepository.getEntityManager().createNativeQuery(query).getResultList(); + List<Integer> results = readonlyRepository.getEntityManager().createNativeQuery(query).getResultList(); for(LMesswert messwert: messwerte) { boolean hit = false; - for (Object[] row: results) { - if (messwert.getMessgroesseId().equals(row[0].toString())) { + for (Integer row: results) { + if (messwert.getMessgroesseId().equals(row.toString())) { hit = true; } }