# HG changeset patch # User Ingo Weinzierl # Date 1334323629 0 # Node ID 212c33c9a5e293f19224395dc191491a7f9917ca # Parent 0a536eb5d668428f20c0c24fc484f16dd4cc346a Added missing annotation in MorphologicalWidth for values. flys-backend/trunk@4239 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 0a536eb5d668 -r 212c33c9a5e2 flys-backend/ChangeLog --- a/flys-backend/ChangeLog Fri Apr 13 13:22:54 2012 +0000 +++ b/flys-backend/ChangeLog Fri Apr 13 13:27:09 2012 +0000 @@ -1,3 +1,11 @@ +2012-04-13 Ingo Weinzierl + + * src/main/java/de/intevation/flys/model/MorphologicalWidth.java: Added + annotation for values. + + * src/main/java/de/intevation/flys/importer/ImportMorphWidthValue.java: + Removed debug output in getPeer() and storeDependencies(). + 2012-04-13 Ingo Weinzierl * src/main/java/de/intevation/flys/importer/parsers/MorphologicalWidthParser.java: diff -r 0a536eb5d668 -r 212c33c9a5e2 flys-backend/src/main/java/de/intevation/flys/importer/ImportMorphWidthValue.java --- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportMorphWidthValue.java Fri Apr 13 13:22:54 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportMorphWidthValue.java Fri Apr 13 13:27:09 2012 +0000 @@ -38,15 +38,11 @@ public void storeDependencies(MorphologicalWidth parent) { - log.info("store dependencies"); - getPeer(parent); } public MorphologicalWidthValue getPeer(MorphologicalWidth parent) { - log.info("get peer"); - if (peer == null) { Session session = ImporterSession.getInstance().getDatabaseSession(); @@ -65,8 +61,6 @@ List values = query.list(); if (values.isEmpty()) { - log.debug("Create new MorphologicalWidthValue DB instance."); - peer = new MorphologicalWidthValue( parent, station, diff -r 0a536eb5d668 -r 212c33c9a5e2 flys-backend/src/main/java/de/intevation/flys/model/MorphologicalWidth.java --- a/flys-backend/src/main/java/de/intevation/flys/model/MorphologicalWidth.java Fri Apr 13 13:22:54 2012 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/model/MorphologicalWidth.java Fri Apr 13 13:27:09 2012 +0000 @@ -11,6 +11,7 @@ import javax.persistence.SequenceGenerator; import javax.persistence.GenerationType; import javax.persistence.JoinColumn; +import javax.persistence.OneToMany; import javax.persistence.OneToOne; @@ -74,6 +75,8 @@ this.unit = unit; } + @OneToMany + @JoinColumn(name = "morphologic_width_id") public List getValues() { return values; }