Mercurial > dive4elements > river
changeset 475:9aa0eddc5221
Add forgotten one to many relation Wst -> WstColumn.
flys-backend/trunk@1721 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 18 Apr 2011 13:34:07 +0000 |
parents | 5d920695a7f0 |
children | 77f337650211 |
files | flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/model/Wst.java |
diffstat | 2 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-backend/ChangeLog Mon Apr 18 11:06:08 2011 +0000 +++ b/flys-backend/ChangeLog Mon Apr 18 13:34:07 2011 +0000 @@ -1,3 +1,8 @@ +2011-04-18 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/java/de/intevation/flys/model/Wst.java: + Add forgotten one to many relation Wst -> WstColumn. + 2011-04-18 Sascha L. Teichmann <sascha.teichmann@intevation.de> * src/main/java/de/intevation/flys/importer/ImportWst.java,
--- a/flys-backend/src/main/java/de/intevation/flys/model/Wst.java Mon Apr 18 11:06:08 2011 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/model/Wst.java Mon Apr 18 13:34:07 2011 +0000 @@ -13,6 +13,7 @@ import javax.persistence.GenerationType; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; +import javax.persistence.OneToMany; import org.apache.log4j.Logger; @@ -34,6 +35,8 @@ private String description; private Integer kind; + private List<WstColumn> columns; + public Wst() { } @@ -92,6 +95,15 @@ this.kind = kind; } + @OneToMany + @JoinColumn(name="wst_id") + public List<WstColumn> getColumns() { + return columns; + } + + public void setColumns(List<WstColumn> columns) { + this.columns = columns; + } /** * Determines the min and max Q values of this WST. The min value is placed