changeset 676:ab539e3f186d

Do not send deskriptor fields with sn = '00'.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 22 May 2015 15:14:54 +0200
parents 331cd2bb3109
children de47b7193bdb
files src/main/java/de/intevation/lada/rest/stamm/DeskriptorService.java
diffstat 1 files changed, 1 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- 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");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)