comparison 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
comparison
equal deleted inserted replaced
1194:491892931761 1195:2b4de678e29a
1 package de.intevation.flys.model; 1 package de.intevation.flys.model;
2
3 import java.math.BigDecimal;
2 4
3 import java.io.Serializable; 5 import java.io.Serializable;
4 6
5 import javax.persistence.Entity; 7 import javax.persistence.Entity;
6 import javax.persistence.Id; 8 import javax.persistence.Id;
17 public class CrossSectionPoint 19 public class CrossSectionPoint
18 implements Serializable 20 implements Serializable
19 { 21 {
20 private Integer id; 22 private Integer id;
21 private CrossSection crossSection; 23 private CrossSection crossSection;
22 private Point3d point;
23 private Integer colPos; 24 private Integer colPos;
25 private BigDecimal x;
26 private BigDecimal y;
24 27
25 public CrossSectionPoint() { 28 public CrossSectionPoint() {
26 } 29 }
27 30
28 @Id 31 @Id
50 53
51 public void setCrossSection(CrossSection crossSection) { 54 public void setCrossSection(CrossSection crossSection) {
52 this.crossSection = crossSection; 55 this.crossSection = crossSection;
53 } 56 }
54 57
55 @OneToOne
56 @JoinColumn(name = "point3d_id")
57 public Point3d getPoint() {
58 return point;
59 }
60
61 public void setPoint(Point3d point) {
62 this.point = point;
63 }
64
65 @Column(name = "col_pos") 58 @Column(name = "col_pos")
66 public Integer getColPos() { 59 public Integer getColPos() {
67 return colPos; 60 return colPos;
68 } 61 }
69 62
70 public void setColPos(Integer colPos) { 63 public void setColPos(Integer colPos) {
71 this.colPos = colPos; 64 this.colPos = colPos;
72 } 65 }
66
67 @Column(name = "x")
68 public BigDecimal getX() {
69 return x;
70 }
71
72 public void setX(BigDecimal x) {
73 this.x = x;
74 }
75
76 @Column(name = "y")
77 public BigDecimal getY() {
78 return y;
79 }
80
81 public void setY(BigDecimal y) {
82 this.y = y;
83 }
73 } 84 }
74 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 85 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org