comparison backend/src/main/java/org/dive4elements/river/model/Edge.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-backend/src/main/java/org/dive4elements/river/model/Edge.java@18619c1e7c2a
children 4dd33b86dc61
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 package org.dive4elements.river.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