sascha@758: package de.intevation.flys.model; sascha@758: sascha@758: import java.io.Serializable; sascha@758: sascha@758: import java.math.BigDecimal; sascha@758: sascha@758: import javax.persistence.Entity; sascha@758: import javax.persistence.Id; sascha@758: import javax.persistence.Table; sascha@758: import javax.persistence.GeneratedValue; sascha@758: import javax.persistence.Column; sascha@758: import javax.persistence.SequenceGenerator; sascha@758: import javax.persistence.GenerationType; sascha@758: sascha@758: @Entity sascha@758: @Table(name = "edges") sascha@758: public class Edge sascha@758: implements Serializable sascha@758: { sascha@758: private Integer id; sascha@758: private BigDecimal top; sascha@758: private BigDecimal bottom; sascha@758: sascha@758: public Edge() { sascha@758: } sascha@758: sascha@758: public Edge(BigDecimal top, BigDecimal bottom) { sascha@758: this.top = top; sascha@758: this.bottom = bottom; sascha@758: } sascha@758: sascha@758: @Id sascha@758: @SequenceGenerator( sascha@758: name = "SEQUENCE_EDGES_ID_SEQ", sascha@758: sequenceName = "EDGES_ID_SEQ", sascha@758: allocationSize = 1) sascha@758: @GeneratedValue( sascha@758: strategy = GenerationType.SEQUENCE, sascha@758: generator = "SEQUENCE_EDGES_ID_SEQ") sascha@758: @Column(name = "id") sascha@758: public Integer getId() { sascha@758: return id; sascha@758: } sascha@758: sascha@758: public void setId(Integer id) { sascha@758: this.id = id; sascha@758: } sascha@758: sascha@758: @Column(name = "top") sascha@758: public BigDecimal getTop() { sascha@758: return top; sascha@758: } sascha@758: sascha@758: public void setTop(BigDecimal top) { sascha@758: this.top = top; sascha@758: } sascha@758: sascha@758: @Column(name = "bottom") sascha@758: public BigDecimal getBottom() { sascha@758: return bottom; sascha@758: } sascha@758: sascha@758: public void setBottom(BigDecimal bottom) { sascha@758: this.bottom = bottom; sascha@758: } sascha@758: } sascha@758: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :