[Lada-commits] [PATCH] Updated s_verwaltungseinheit model to fit the new db table columns
Wald Commits
scm-commit at wald.intevation.org
Tue Dec 3 17:27:51 CET 2013
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1386088056 -3600
# Node ID f0671f400c2dc82fe3c4e497b5ae1a1bb3304d25
# Parent 4f9cde6277b0a1954c112ce2e3b6cf8b31311436
Updated s_verwaltungseinheit model to fit the new db table columns.
diff -r 4f9cde6277b0 -r f0671f400c2d src/main/java/de/intevation/lada/model/SVerwaltungseinheit.java
--- a/src/main/java/de/intevation/lada/model/SVerwaltungseinheit.java Tue Dec 03 17:07:31 2013 +0100
+++ b/src/main/java/de/intevation/lada/model/SVerwaltungseinheit.java Tue Dec 03 17:27:36 2013 +0100
@@ -26,14 +26,10 @@
private char isLandkreis;
private char isRegbezirk;
private String koordXExtern;
- private Integer koordXGk;
private String koordYExtern;
- private Integer koordYGk;
private String plz;
- private Double koordXGeo;
- private Integer koordXUtm;
- private Integer koordYUtm;
- private Double koordYGeo;
+ private Double longitude;
+ private Double latitude;
public SVerwaltungseinheit() {
}
@@ -53,10 +49,9 @@
public SVerwaltungseinheit(String gemId, String bundesland, Short kdaId,
String kreis, String nuts, String regbezirk, String bezeichnung,
char isBundesland, char isGemeinde, char isLandkreis,
- char isRegbezirk, String koordXExtern, Integer koordXGk,
- String koordYExtern, Integer koordYGk, String plz,
- Double koordXGeo, Integer koordXUtm, Integer koordYUtm,
- Double koordYGeo) {
+ char isRegbezirk, String koordXExtern,
+ String koordYExtern, String plz,
+ Double longitude, Double latitude) {
this.gemId = gemId;
this.bundesland = bundesland;
this.kdaId = kdaId;
@@ -69,14 +64,10 @@
this.isLandkreis = isLandkreis;
this.isRegbezirk = isRegbezirk;
this.koordXExtern = koordXExtern;
- this.koordXGk = koordXGk;
this.koordYExtern = koordYExtern;
- this.koordYGk = koordYGk;
this.plz = plz;
- this.koordXGeo = koordXGeo;
- this.koordXUtm = koordXUtm;
- this.koordYUtm = koordYUtm;
- this.koordYGeo = koordYGeo;
+ this.longitude = longitude;
+ this.latitude = latitude;
}
@Id
@@ -188,15 +179,6 @@
this.koordXExtern = koordXExtern;
}
- @Column(name = "koord_x_gk")
- public Integer getKoordXGk() {
- return this.koordXGk;
- }
-
- public void setKoordXGk(Integer koordXGk) {
- this.koordXGk = koordXGk;
- }
-
@Column(name = "koord_y_extern", length = 22)
public String getKoordYExtern() {
return this.koordYExtern;
@@ -206,15 +188,6 @@
this.koordYExtern = koordYExtern;
}
- @Column(name = "koord_y_gk")
- public Integer getKoordYGk() {
- return this.koordYGk;
- }
-
- public void setKoordYGk(Integer koordYGk) {
- this.koordYGk = koordYGk;
- }
-
@Column(name = "plz", length = 6)
public String getPlz() {
return this.plz;
@@ -224,40 +197,22 @@
this.plz = plz;
}
- @Column(name = "koord_x_geo", precision = 17, scale = 17)
- public Double getKoordXGeo() {
- return this.koordXGeo;
+ @Column(name = "longitude", precision = 17, scale = 17)
+ public Double getLongitude() {
+ return this.longitude;
}
- public void setKoordXGeo(Double koordXGeo) {
- this.koordXGeo = koordXGeo;
+ public void setLongitude(Double longitude) {
+ this.longitude = longitude;
}
- @Column(name = "koord_x_utm")
- public Integer getKoordXUtm() {
- return this.koordXUtm;
+ @Column(name = "latitude", precision = 17, scale = 17)
+ public Double getLatitude() {
+ return this.latitude;
}
- public void setKoordXUtm(Integer koordXUtm) {
- this.koordXUtm = koordXUtm;
- }
-
- @Column(name = "koord_y_utm")
- public Integer getKoordYUtm() {
- return this.koordYUtm;
- }
-
- public void setKoordYUtm(Integer koordYUtm) {
- this.koordYUtm = koordYUtm;
- }
-
- @Column(name = "koord_y_geo", precision = 17, scale = 17)
- public Double getKoordYGeo() {
- return this.koordYGeo;
- }
-
- public void setKoordYGeo(Double koordYGeo) {
- this.koordYGeo = koordYGeo;
+ public void setLatitude(Double latitude) {
+ this.latitude = latitude;
}
}
More information about the Lada-commits
mailing list