comparison flys-backend/src/main/java/de/intevation/flys/model/Edge.java @ 2877:f0a67bc0e777 2.7

merged flys-backend/2.7
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:31 +0200
parents bf16268629d9
children
comparison
equal deleted inserted replaced
2793:6310b1582f2d 2877:f0a67bc0e777
1 package de.intevation.flys.model;
2
3 import java.io.Serializable;
4
5 import java.math.BigDecimal;
6
7 import javax.persistence.Entity;
8 import javax.persistence.Id;
9 import javax.persistence.Table;
10 import javax.persistence.GeneratedValue;
11 import javax.persistence.Column;
12 import javax.persistence.SequenceGenerator;
13 import javax.persistence.GenerationType;
14
15 @Entity
16 @Table(name = "edges")
17 public class Edge
18 implements Serializable
19 {
20 private Integer id;
21 private BigDecimal top;
22 private BigDecimal bottom;
23
24 public Edge() {
25 }
26
27 public Edge(BigDecimal top, BigDecimal bottom) {
28 this.top = top;
29 this.bottom = bottom;
30 }
31
32 @Id
33 @SequenceGenerator(
34 name = "SEQUENCE_EDGES_ID_SEQ",
35 sequenceName = "EDGES_ID_SEQ",
36 allocationSize = 1)
37 @GeneratedValue(
38 strategy = GenerationType.SEQUENCE,
39 generator = "SEQUENCE_EDGES_ID_SEQ")
40 @Column(name = "id")
41 public Integer getId() {
42 return id;
43 }
44
45 public void setId(Integer id) {
46 this.id = id;
47 }
48
49 @Column(name = "top")
50 public BigDecimal getTop() {
51 return top;
52 }
53
54 public void setTop(BigDecimal top) {
55 this.top = top;
56 }
57
58 @Column(name = "bottom")
59 public BigDecimal getBottom() {
60 return bottom;
61 }
62
63 public void setBottom(BigDecimal bottom) {
64 this.bottom = bottom;
65 }
66 }
67 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org