Mercurial > dive4elements > river
changeset 7750:6ff574778491
Added model_uuid column to river model.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 27 Feb 2014 14:45:22 +0100 |
parents | 44a9233c62eb |
children | 24408bce2fdb |
files | backend/src/main/java/org/dive4elements/river/model/River.java |
diffstat | 1 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/model/River.java Thu Feb 06 13:22:10 2014 +0100 +++ b/backend/src/main/java/org/dive4elements/river/model/River.java Thu Feb 27 14:45:22 2014 +0100 @@ -61,6 +61,8 @@ private boolean kmUp; + private String modelUuid; + private List<Gauge> gauges; private List<MeasurementStation> measurementstations; @@ -111,12 +113,22 @@ this.kmUp = kmUp; } + @Column(name = "model_uuid") + public String getModelUuid() { + return this.modelUuid; + } + + public void setModelUuid(String modelUuid) { + this.modelUuid = modelUuid; + } + public River() { } - public River(String name, Unit wstUnit) { - this.name = name; - this.wstUnit = wstUnit; + public River(String name, Unit wstUnit, String modelUuid) { + this.name = name; + this.modelUuid = modelUuid; + this.wstUnit = wstUnit; } @OneToMany