comparison flys-backend/src/main/java/de/intevation/flys/model/CrossSectionPoint.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 2b4de678e29a
children 22858e7cca79
comparison
equal deleted inserted replaced
1202:44581b40b968 1203:3c01bef43a98
17 @Entity 17 @Entity
18 @Table(name = "cross_section_points") 18 @Table(name = "cross_section_points")
19 public class CrossSectionPoint 19 public class CrossSectionPoint
20 implements Serializable 20 implements Serializable
21 { 21 {
22 private Integer id; 22 private Integer id;
23 private CrossSection crossSection; 23 private CrossSectionLine crossSectionLine;
24 private Integer colPos; 24 private Integer colPos;
25 private BigDecimal x; 25 private BigDecimal x;
26 private BigDecimal y; 26 private BigDecimal y;
27 27
28 public CrossSectionPoint() { 28 public CrossSectionPoint() {
29 } 29 }
30 30
31 @Id 31 @Id
44 public void setId(Integer id) { 44 public void setId(Integer id) {
45 this.id = id; 45 this.id = id;
46 } 46 }
47 47
48 @OneToOne 48 @OneToOne
49 @JoinColumn(name = "cross_section_id") 49 @JoinColumn(name = "cross_section_line_id")
50 public CrossSection getCrossSection() { 50 public CrossSectionLine getCrossSectionLine() {
51 return crossSection; 51 return crossSectionLine;
52 } 52 }
53 53
54 public void setCrossSection(CrossSection crossSection) { 54 public void setCrossSectionLine(CrossSectionLine crossSectionLine) {
55 this.crossSection = crossSection; 55 this.crossSectionLine = crossSectionLine;
56 } 56 }
57 57
58 @Column(name = "col_pos") 58 @Column(name = "col_pos")
59 public Integer getColPos() { 59 public Integer getColPos() {
60 return colPos; 60 return colPos;

http://dive4elements.wald.intevation.org