[Lada-commits] [PATCH 07 of 13] Do not send deskriptor fields with sn = '00'

Wald Commits scm-commit at wald.intevation.org
Fri May 29 11:48:17 CEST 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1432300494 -7200
# Node ID ab539e3f186d69323508dc820720f634046f143b
# Parent  331cd2bb31099beb709005501b4ea341e968fa6a
Do not send deskriptor fields with sn = '00'.

diff -r 331cd2bb3109 -r ab539e3f186d src/main/java/de/intevation/lada/rest/stamm/DeskriptorService.java
--- a/src/main/java/de/intevation/lada/rest/stamm/DeskriptorService.java	Fri May 22 15:14:08 2015 +0200
+++ b/src/main/java/de/intevation/lada/rest/stamm/DeskriptorService.java	Fri May 22 15:14:54 2015 +0200
@@ -44,32 +44,6 @@
  *  "success": [boolean];
  *  "message": [string],
  *  "data":[{
- *      "id":[number],
- *      "baId": [string],
- *      "datenbasisId": [number],
- *      "letzteAenderung": [timestamp],
- *      "media": [string],
- *      "mediaDesk": [string],
- *      "mittelungsdauer": [number],
- *      "mstId": [string],
- *      "netzbetreiberId":[string],
- *      "probeentnahmeBeginn": [timestamp],
- *      "probeentnahmeEnde": [timestamp],
- *      "probenartId": [number],
- *      "test": [boolean],
- *      "umwId": [string],
- *      "hauptprobenNr": [string],
- *      "erzeugerId": [string],
- *      "mpKat": [string],
- *      "mplId": [number],
- *      "mprId": [number],
- *      "probeNehmerId": [number],
- *      "solldatumBeginn": [timestamp],
- *      "solldatumEnde": [timestamp],
- *      "treeModified": [timestamp],
- *      "readonly": [boolean],
- *      "owner": [boolean],
- *      "probeIdAlt": [string]
  *  }],
  *  "errors": [object],
  *  "warnings": [object],
@@ -122,6 +96,7 @@
         QueryBuilder<Deskriptoren> builder = new QueryBuilder<Deskriptoren>(
             repository.entityManager("stamm"),
             Deskriptoren.class);
+        builder.andNot("sn", 0);
         if (params.containsKey("layer") &&
             !params.containsKey("parents")) {
             String layer = params.getFirst("layer");


More information about the Lada-commits mailing list