diff flys-backend/src/main/java/de/intevation/flys/model/CrossSectionPoint.java @ 1195:2b4de678e29a

Removed braindead points3d table flys-backend/trunk@2295 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 06 Jul 2011 15:35:38 +0000
parents 491892931761
children 3c01bef43a98
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/model/CrossSectionPoint.java	Wed Jul 06 12:56:59 2011 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/model/CrossSectionPoint.java	Wed Jul 06 15:35:38 2011 +0000
@@ -1,5 +1,7 @@
 package de.intevation.flys.model;
 
+import java.math.BigDecimal;
+
 import java.io.Serializable;
 
 import javax.persistence.Entity;
@@ -19,8 +21,9 @@
 {
     private Integer      id;
     private CrossSection crossSection;
-    private Point3d      point;
     private Integer      colPos;
+    private BigDecimal   x;
+    private BigDecimal   y;
 
     public CrossSectionPoint() {
     }
@@ -52,16 +55,6 @@
         this.crossSection = crossSection;
     }
 
-    @OneToOne
-    @JoinColumn(name = "point3d_id")
-    public Point3d getPoint() {
-        return point;
-    }
-
-    public void setPoint(Point3d point) {
-        this.point = point;
-    }
-
     @Column(name = "col_pos")
     public Integer getColPos() {
         return colPos;
@@ -70,5 +63,23 @@
     public void setColPos(Integer colPos) {
         this.colPos = colPos;
     }
+
+    @Column(name = "x")
+    public BigDecimal getX() {
+        return x;
+    }
+
+    public void setX(BigDecimal x) {
+        this.x = x;
+    }
+
+    @Column(name = "y")
+    public BigDecimal getY() {
+        return y;
+    }
+
+    public void setY(BigDecimal y) {
+        this.y = y;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org