Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/CrossSectionPoint.java @ 2860:2f874d14ac68
Use Doubles to store meassure points of profiles.
flys-backend/trunk@4325 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 02 May 2012 08:49:57 +0000 |
parents | 22858e7cca79 |
children | 0ad7141c7dcc |
comparison
equal
deleted
inserted
replaced
2859:ed13816047b3 | 2860:2f874d14ac68 |
---|---|
1 package de.intevation.flys.model; | 1 package de.intevation.flys.model; |
2 | |
3 import java.math.BigDecimal; | |
4 | 2 |
5 import java.io.Serializable; | 3 import java.io.Serializable; |
6 | 4 |
7 import javax.persistence.Entity; | 5 import javax.persistence.Entity; |
8 import javax.persistence.Id; | 6 import javax.persistence.Id; |
20 implements Serializable | 18 implements Serializable |
21 { | 19 { |
22 private Integer id; | 20 private Integer id; |
23 private CrossSectionLine crossSectionLine; | 21 private CrossSectionLine crossSectionLine; |
24 private Integer colPos; | 22 private Integer colPos; |
25 private BigDecimal x; | 23 private Double x; |
26 private BigDecimal y; | 24 private Double y; |
27 | 25 |
28 public CrossSectionPoint() { | 26 public CrossSectionPoint() { |
29 } | 27 } |
30 | 28 |
31 public CrossSectionPoint( | 29 public CrossSectionPoint( |
32 CrossSectionLine crossSectionLine, | 30 CrossSectionLine crossSectionLine, |
33 Integer colPos, | 31 Integer colPos, |
34 BigDecimal x, | 32 Double x, |
35 BigDecimal y | 33 Double y |
36 ) { | 34 ) { |
37 this.crossSectionLine = crossSectionLine; | 35 this.crossSectionLine = crossSectionLine; |
38 this.colPos = colPos; | 36 this.colPos = colPos; |
39 this.x = x; | 37 this.x = x; |
40 this.y = y; | 38 this.y = y; |
75 public void setColPos(Integer colPos) { | 73 public void setColPos(Integer colPos) { |
76 this.colPos = colPos; | 74 this.colPos = colPos; |
77 } | 75 } |
78 | 76 |
79 @Column(name = "x") | 77 @Column(name = "x") |
80 public BigDecimal getX() { | 78 public Double getX() { |
81 return x; | 79 return x; |
82 } | 80 } |
83 | 81 |
84 public void setX(BigDecimal x) { | 82 public void setX(Double x) { |
85 this.x = x; | 83 this.x = x; |
86 } | 84 } |
87 | 85 |
88 @Column(name = "y") | 86 @Column(name = "y") |
89 public BigDecimal getY() { | 87 public Double getY() { |
90 return y; | 88 return y; |
91 } | 89 } |
92 | 90 |
93 public void setY(BigDecimal y) { | 91 public void setY(Double y) { |
94 this.y = y; | 92 this.y = y; |
95 } | 93 } |
96 } | 94 } |
97 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 95 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |