[Lada-commits] [PATCH 01 of 11] Renamed all 'messungId' url parameters to 'messungsId'
Wald Commits
scm-commit at wald.intevation.org
Fri Mar 13 16:50:40 CET 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1426261332 -3600
# Node ID 4017d2c8dd2468ea40711143b66bc2ce76dbd756
# Parent 7a0e3d49ae33755be8f1be56b48f7ffb71c112ab
Renamed all 'messungId' url parameters to 'messungsId'.
diff -r 7a0e3d49ae33 -r 4017d2c8dd24 src/main/java/de/intevation/lada/model/KommentarM.java
--- a/src/main/java/de/intevation/lada/model/KommentarM.java Tue Feb 24 15:15:44 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/KommentarM.java Fri Mar 13 16:42:12 2015 +0100
@@ -27,7 +27,7 @@
private static final long serialVersionUID = 1L;
@Column(name="messungs_id")
- private Integer messungId;
+ private Integer messungsId;
private Timestamp datum;
@@ -75,11 +75,11 @@
this.text = text;
}
- public Integer getMessungId() {
- return this.messungId;
+ public Integer getMessungsId() {
+ return this.messungsId;
}
- public void setMessungId(Integer messungId) {
- this.messungId = messungId;
+ public void setMessungsId(Integer messungsId) {
+ this.messungsId = messungsId;
}
}
diff -r 7a0e3d49ae33 -r 4017d2c8dd24 src/main/java/de/intevation/lada/rest/KommentarMService.java
--- a/src/main/java/de/intevation/lada/rest/KommentarMService.java Tue Feb 24 15:15:44 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/KommentarMService.java Fri Mar 13 16:42:12 2015 +0100
@@ -77,15 +77,15 @@
return new Response(false, 699, null);
}
MultivaluedMap<String, String> params = info.getQueryParameters();
- if (params.isEmpty() || !params.containsKey("messungId")) {
+ if (params.isEmpty() || !params.containsKey("messungsId")) {
return defaultRepo.getAll(LKommentarM.class, "land");
}
- String messungId = params.getFirst("messungId");
+ String messungId = params.getFirst("messungsId");
QueryBuilder<LKommentarM> builder =
new QueryBuilder<LKommentarM>(
defaultRepo.entityManager("land"),
LKommentarM.class);
- builder.and("messungId", messungId);
+ builder.and("messungsId", messungId);
return defaultRepo.filter(builder.getQuery(), "land");
}
diff -r 7a0e3d49ae33 -r 4017d2c8dd24 src/main/java/de/intevation/lada/rest/MesswertService.java
--- a/src/main/java/de/intevation/lada/rest/MesswertService.java Tue Feb 24 15:15:44 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/MesswertService.java Fri Mar 13 16:42:12 2015 +0100
@@ -77,11 +77,11 @@
return new Response(false, 699, null);
}
MultivaluedMap<String, String> params = info.getQueryParameters();
- if (params.isEmpty() || !params.containsKey("messungId")) {
+ if (params.isEmpty() || !params.containsKey("messungsId")) {
logger.debug("get all");
return defaultRepo.getAll(LMesswert.class, "land");
}
- String messungId = params.getFirst("messungId");
+ String messungId = params.getFirst("messungsId");
QueryBuilder<LMesswert> builder =
new QueryBuilder<LMesswert>(
defaultRepo.entityManager("land"),
diff -r 7a0e3d49ae33 -r 4017d2c8dd24 src/main/java/de/intevation/lada/rest/StatusService.java
--- a/src/main/java/de/intevation/lada/rest/StatusService.java Tue Feb 24 15:15:44 2015 +0100
+++ b/src/main/java/de/intevation/lada/rest/StatusService.java Fri Mar 13 16:42:12 2015 +0100
@@ -77,10 +77,10 @@
return new Response(false, 699, null);
}
MultivaluedMap<String, String> params = info.getQueryParameters();
- if (params.isEmpty() || !params.containsKey("messungId")) {
+ if (params.isEmpty() || !params.containsKey("messungsId")) {
return defaultRepo.getAll(LStatus.class, "land");
}
- String messungId = params.getFirst("messungId");
+ String messungId = params.getFirst("messungsId");
QueryBuilder<LStatus> builder =
new QueryBuilder<LStatus>(
defaultRepo.entityManager("land"),
More information about the Lada-commits
mailing list