Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/CrossSection.java @ 1202:44581b40b968
Schema: Added description column to the cross section table
flys-backend/trunk@2307 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 07 Jul 2011 15:20:19 +0000 |
parents | 491892931761 |
children | 3c01bef43a98 |
comparison
equal
deleted
inserted
replaced
1201:4e1b475a8cba | 1202:44581b40b968 |
---|---|
24 { | 24 { |
25 private Integer id; | 25 private Integer id; |
26 private BigDecimal km; | 26 private BigDecimal km; |
27 private River river; | 27 private River river; |
28 private TimeInterval timeInterval; | 28 private TimeInterval timeInterval; |
29 private String description; | |
29 private List<CrossSectionPoint> points; | 30 private List<CrossSectionPoint> points; |
30 | 31 |
31 public CrossSection() { | 32 public CrossSection() { |
32 } | 33 } |
33 | 34 |
75 | 76 |
76 public void setTimeInterval(TimeInterval timeInterval) { | 77 public void setTimeInterval(TimeInterval timeInterval) { |
77 this.timeInterval = timeInterval; | 78 this.timeInterval = timeInterval; |
78 } | 79 } |
79 | 80 |
81 @Column(name = "description") | |
82 public String getDescription() { | |
83 return description; | |
84 } | |
85 | |
86 public void setDescription(String description) { | |
87 this.description = description; | |
88 } | |
89 | |
80 @OneToMany | 90 @OneToMany |
81 @JoinColumn(name="cross_section_id") | 91 @JoinColumn(name="cross_section_id") |
82 public List<CrossSectionPoint> getPoints() { | 92 public List<CrossSectionPoint> getPoints() { |
83 return points; | 93 return points; |
84 } | 94 } |