diff 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
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/CrossSectionPoint.java	Fri Apr 27 15:52:08 2012 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/model/CrossSectionPoint.java	Wed May 02 08:49:57 2012 +0000
@@ -1,7 +1,5 @@
 package de.intevation.flys.model;
 
-import java.math.BigDecimal;
-
 import java.io.Serializable;
 
 import javax.persistence.Entity;
@@ -22,8 +20,8 @@
     private Integer          id;
     private CrossSectionLine crossSectionLine;
     private Integer          colPos;
-    private BigDecimal       x;
-    private BigDecimal       y;
+    private Double       x;
+    private Double       y;
 
     public CrossSectionPoint() {
     }
@@ -31,8 +29,8 @@
     public CrossSectionPoint(
         CrossSectionLine crossSectionLine,
         Integer          colPos,
-        BigDecimal       x,
-        BigDecimal       y
+        Double       x,
+        Double       y
     ) {
         this.crossSectionLine = crossSectionLine;
         this.colPos           = colPos;
@@ -77,20 +75,20 @@
     }
 
     @Column(name = "x")
-    public BigDecimal getX() {
+    public Double getX() {
         return x;
     }
 
-    public void setX(BigDecimal x) {
+    public void setX(Double x) {
         this.x = x;
     }
 
     @Column(name = "y")
-    public BigDecimal getY() {
+    public Double getY() {
         return y;
     }
 
-    public void setY(BigDecimal y) {
+    public void setY(Double y) {
         this.y = y;
     }
 }

http://dive4elements.wald.intevation.org