sascha@1193: package de.intevation.flys.model; sascha@1193: sascha@1193: import java.io.Serializable; sascha@1193: sascha@1193: import java.math.BigDecimal; sascha@1193: sascha@1193: import javax.persistence.Entity; sascha@1193: import javax.persistence.Id; sascha@1193: import javax.persistence.Table; sascha@1193: import javax.persistence.GeneratedValue; sascha@1193: import javax.persistence.Column; sascha@1193: import javax.persistence.SequenceGenerator; sascha@1193: import javax.persistence.GenerationType; sascha@1193: sascha@1193: @Entity sascha@1193: @Table(name = "points3d") sascha@1193: public class Point3d sascha@1193: implements Serializable sascha@1193: { sascha@1193: private Integer id; sascha@1193: private BigDecimal x; sascha@1193: private BigDecimal y; sascha@1193: private BigDecimal z; sascha@1193: sascha@1193: public Point3d() { sascha@1193: } sascha@1193: sascha@1193: public Point3d(BigDecimal x, BigDecimal y, BigDecimal z) { sascha@1193: this.x = x; sascha@1193: this.y = y; sascha@1193: this.z = z; sascha@1193: } sascha@1193: sascha@1193: @Id sascha@1193: @SequenceGenerator( sascha@1193: name = "SEQUENCE_POINTS3D_ID_SEQ", sascha@1193: sequenceName = "POINTS3D_ID_SEQ", sascha@1193: allocationSize = 1) sascha@1193: @GeneratedValue( sascha@1193: strategy = GenerationType.SEQUENCE, sascha@1193: generator = "SEQUENCE_POINTS3D_ID_SEQ") sascha@1193: @Column(name = "id") sascha@1193: public Integer getId() { sascha@1193: return id; sascha@1193: } sascha@1193: sascha@1193: public void setId(Integer id) { sascha@1193: this.id = id; sascha@1193: } sascha@1193: sascha@1193: @Column(name = "x") sascha@1193: public BigDecimal getX() { sascha@1193: return x; sascha@1193: } sascha@1193: sascha@1193: public void setX(BigDecimal x) { sascha@1193: this.x = x; sascha@1193: } sascha@1193: sascha@1193: @Column(name = "y") sascha@1193: public BigDecimal getY() { sascha@1193: return y; sascha@1193: } sascha@1193: sascha@1193: public void setY(BigDecimal y) { sascha@1193: this.y = y; sascha@1193: } sascha@1193: sascha@1193: @Column(name = "z") sascha@1193: public BigDecimal getZ() { sascha@1193: return z; sascha@1193: } sascha@1193: sascha@1193: public void setZ(BigDecimal z) { sascha@1193: this.z = z; sascha@1193: } sascha@1193: } sascha@1193: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :