comparison flys-backend/src/main/java/de/intevation/flys/model/MorphologicalWidth.java @ 2822:212c33c9a5e2

Added missing annotation in MorphologicalWidth for values. flys-backend/trunk@4239 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 13 Apr 2012 13:27:09 +0000
parents 25ed1f18fcc4
children
comparison
equal deleted inserted replaced
2821:0a536eb5d668 2822:212c33c9a5e2
9 import javax.persistence.GeneratedValue; 9 import javax.persistence.GeneratedValue;
10 import javax.persistence.Column; 10 import javax.persistence.Column;
11 import javax.persistence.SequenceGenerator; 11 import javax.persistence.SequenceGenerator;
12 import javax.persistence.GenerationType; 12 import javax.persistence.GenerationType;
13 import javax.persistence.JoinColumn; 13 import javax.persistence.JoinColumn;
14 import javax.persistence.OneToMany;
14 import javax.persistence.OneToOne; 15 import javax.persistence.OneToOne;
15 16
16 17
17 @Entity 18 @Entity
18 @Table(name = "morphologic_width") 19 @Table(name = "morphologic_width")
72 73
73 public void setUnit(Unit unit) { 74 public void setUnit(Unit unit) {
74 this.unit = unit; 75 this.unit = unit;
75 } 76 }
76 77
78 @OneToMany
79 @JoinColumn(name = "morphologic_width_id")
77 public List<MorphologicalWidthValue> getValues() { 80 public List<MorphologicalWidthValue> getValues() {
78 return values; 81 return values;
79 } 82 }
80 83
81 public void setValues(List<MorphologicalWidthValue> values) { 84 public void setValues(List<MorphologicalWidthValue> values) {

http://dive4elements.wald.intevation.org