comparison flys-backend/src/main/java/de/intevation/flys/model/BedHeightSingleValue.java @ 2809:f283212966e8

Finished work on MINFO bed heights (single). flys-backend/trunk@4221 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 12 Apr 2012 10:42:46 +0000
parents
children 1894e0471eac
comparison
equal deleted inserted replaced
2808:b57c95094b68 2809:f283212966e8
1 package de.intevation.flys.model;
2
3 import java.io.Serializable;
4 import java.math.BigDecimal;
5
6 import javax.persistence.Entity;
7 import javax.persistence.Id;
8 import javax.persistence.Table;
9 import javax.persistence.GeneratedValue;
10 import javax.persistence.Column;
11 import javax.persistence.SequenceGenerator;
12 import javax.persistence.GenerationType;
13 import javax.persistence.JoinColumn;
14 import javax.persistence.OneToOne;
15
16 import org.apache.log4j.Logger;
17
18
19 @Entity
20 @Table(name = "bed_height_single_values")
21 public class BedHeightSingleValue
22 implements Serializable
23 {
24 private static Logger logger =
25 Logger.getLogger(BedHeightSingleValue.class);
26
27 private Integer id;
28
29 private BedHeightSingle bedHeight;
30
31 private BigDecimal station;
32 private BigDecimal height;
33 private BigDecimal uncertainty;
34 private BigDecimal dataGap;
35 private BigDecimal soundingWidth;
36 private BigDecimal width;
37
38
39 public BedHeightSingleValue() {
40 }
41
42 public BedHeightSingleValue(
43 BedHeightSingle bedHeight,
44 BigDecimal station,
45 BigDecimal height,
46 BigDecimal uncertainty,
47 BigDecimal dataGap,
48 BigDecimal soundingWidth,
49 BigDecimal width
50 ) {
51 this.bedHeight = bedHeight;
52 this.station = station;
53 this.height = height;
54 this.uncertainty = uncertainty;
55 this.dataGap = dataGap;
56 this.soundingWidth = soundingWidth;
57 this.width = width;
58 }
59
60 @Id
61 @SequenceGenerator(
62 name = "SEQUENCE_BED_SINGLE_VALUE_ID_SEQ",
63 sequenceName = "BED_SINGLE_VALUES_ID_SEQ",
64 allocationSize = 1)
65 @GeneratedValue(
66 strategy = GenerationType.SEQUENCE,
67 generator = "SEQUENCE_BED_SINGLE_VALUE_ID_SEQ")
68 @Column(name = "id")
69 public Integer getId() {
70 return id;
71 }
72
73 public void setId(Integer id) {
74 this.id = id;
75 }
76
77 @OneToOne
78 @JoinColumn(name = "bed_height_single_id" )
79 public BedHeightSingle getBedHeight() {
80 return bedHeight;
81 }
82
83 public void setBedHeight(BedHeightSingle bedHeight) {
84 this.bedHeight = bedHeight;
85 }
86
87 @Column(name = "station")
88 public BigDecimal getStation() {
89 return station;
90 }
91
92 public void setStation(BigDecimal station) {
93 this.station = station;
94 }
95
96 @Column(name = "height")
97 public BigDecimal getHeight() {
98 return height;
99 }
100
101 public void setHeight(BigDecimal height) {
102 this.height = height;
103 }
104
105 @Column(name="uncertainty")
106 public BigDecimal getUncertainty() {
107 return uncertainty;
108 }
109
110 public void setUncertainty(BigDecimal uncertainty) {
111 this.uncertainty = uncertainty;
112 }
113
114 @Column(name="data_gap")
115 public BigDecimal getDataGap() {
116 return dataGap;
117 }
118
119 public void setDataGap(BigDecimal dataGap) {
120 this.dataGap = dataGap;
121 }
122
123 @Column(name="sounding_width")
124 public BigDecimal getSoundingWidth() {
125 return soundingWidth;
126 }
127
128 public void setSoundingWidth(BigDecimal soundingWidth) {
129 this.soundingWidth = soundingWidth;
130 }
131
132 @Column(name="width")
133 public BigDecimal getWidth() {
134 return width;
135 }
136
137 public void setWidth(BigDecimal width) {
138 this.width = width;
139 }
140 }
141 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org