Mercurial > dive4elements > river
diff flys-backend/src/main/java/de/intevation/flys/model/CrossSection.java @ 1203:3c01bef43a98
Querprofile: Added a table to map the points to a given km.
flys-backend/trunk@2308 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 07 Jul 2011 15:59:24 +0000 |
parents | 44581b40b968 |
children | 22858e7cca79 |
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/CrossSection.java Thu Jul 07 15:20:19 2011 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/model/CrossSection.java Thu Jul 07 15:59:24 2011 +0000 @@ -2,8 +2,6 @@ import java.io.Serializable; -import java.math.BigDecimal; - import java.util.List; import javax.persistence.Entity; @@ -22,12 +20,11 @@ public class CrossSection implements Serializable { - private Integer id; - private BigDecimal km; - private River river; - private TimeInterval timeInterval; - private String description; - private List<CrossSectionPoint> points; + private Integer id; + private River river; + private TimeInterval timeInterval; + private String description; + private List<CrossSectionLine> lines; public CrossSection() { } @@ -49,15 +46,6 @@ this.id = id; } - @Column(name = "x") - public BigDecimal getKm() { - return km; - } - - public void setKm(BigDecimal km) { - this.km = km; - } - @OneToOne @JoinColumn(name = "river_id") public River getRiver() { @@ -89,12 +77,12 @@ @OneToMany @JoinColumn(name="cross_section_id") - public List<CrossSectionPoint> getPoints() { - return points; + public List<CrossSectionLine> getLines() { + return lines; } - public void setPoints(List<CrossSectionPoint> points) { - this.points = points; + public void setLines(List<CrossSectionLine> lines) { + this.lines = lines; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :