comparison backend/src/main/java/de/intevation/seddb/model/Mpeilung.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/de/intevation/seddb/model/Mpeilung.java@18619c1e7c2a
children 4dd33b86dc61
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 package org.dive4elements.seddb.model;
2 // Generated 14.06.2012 11:30:57 by Hibernate Tools 3.4.0.CR1
3
4
5 import java.math.BigDecimal;
6 import java.util.Date;
7 import java.util.HashSet;
8 import java.util.Set;
9 import javax.persistence.Column;
10 import javax.persistence.Entity;
11 import javax.persistence.FetchType;
12 import javax.persistence.Id;
13 import javax.persistence.JoinColumn;
14 import javax.persistence.ManyToOne;
15 import javax.persistence.OneToMany;
16 import javax.persistence.Table;
17 import javax.persistence.Temporal;
18 import javax.persistence.TemporalType;
19
20 /**
21 * Mpeilung generated by hbm2java
22 */
23 @Entity
24 @Table(name="MPEILUNG"
25 ,schema="SEDDB"
26 )
27 public class Mpeilung implements java.io.Serializable {
28
29
30 private long mpeilungid;
31 private Station station;
32 private Date datum;
33 private BigDecimal km;
34 private String bemerkung;
35 private Date lastupdated;
36 private Long oldapeilid;
37 private Set<Mpeilpunkt> mpeilpunkts = new HashSet<Mpeilpunkt>(0);
38
39 public Mpeilung() {
40 }
41
42 public Mpeilung(long mpeilungid, Station station, Date datum, BigDecimal km, Date lastupdated) {
43 this.mpeilungid = mpeilungid;
44 this.station = station;
45 this.datum = datum;
46 this.km = km;
47 this.lastupdated = lastupdated;
48 }
49 public Mpeilung(long mpeilungid, Station station, Date datum, BigDecimal km, String bemerkung, Date lastupdated, Long oldapeilid, Set<Mpeilpunkt> mpeilpunkts) {
50 this.mpeilungid = mpeilungid;
51 this.station = station;
52 this.datum = datum;
53 this.km = km;
54 this.bemerkung = bemerkung;
55 this.lastupdated = lastupdated;
56 this.oldapeilid = oldapeilid;
57 this.mpeilpunkts = mpeilpunkts;
58 }
59
60 @Id
61
62
63 @Column(name="MPEILUNGID", unique=true, nullable=false, precision=11, scale=0)
64 public long getMpeilungid() {
65 return this.mpeilungid;
66 }
67
68 public void setMpeilungid(long mpeilungid) {
69 this.mpeilungid = mpeilungid;
70 }
71
72 @ManyToOne(fetch=FetchType.LAZY)
73 @JoinColumn(name="STATIONID", nullable=false)
74 public Station getStation() {
75 return this.station;
76 }
77
78 public void setStation(Station station) {
79 this.station = station;
80 }
81
82 @Temporal(TemporalType.DATE)
83 @Column(name="DATUM", nullable=false, length=7)
84 public Date getDatum() {
85 return this.datum;
86 }
87
88 public void setDatum(Date datum) {
89 this.datum = datum;
90 }
91
92
93 @Column(name="KM", nullable=false, precision=8, scale=3)
94 public BigDecimal getKm() {
95 return this.km;
96 }
97
98 public void setKm(BigDecimal km) {
99 this.km = km;
100 }
101
102
103 @Column(name="BEMERKUNG", length=240)
104 public String getBemerkung() {
105 return this.bemerkung;
106 }
107
108 public void setBemerkung(String bemerkung) {
109 this.bemerkung = bemerkung;
110 }
111
112 @Temporal(TemporalType.DATE)
113 @Column(name="LASTUPDATED", nullable=false, length=7)
114 public Date getLastupdated() {
115 return this.lastupdated;
116 }
117
118 public void setLastupdated(Date lastupdated) {
119 this.lastupdated = lastupdated;
120 }
121
122
123 @Column(name="OLDAPEILID", precision=11, scale=0)
124 public Long getOldapeilid() {
125 return this.oldapeilid;
126 }
127
128 public void setOldapeilid(Long oldapeilid) {
129 this.oldapeilid = oldapeilid;
130 }
131
132 @OneToMany(fetch=FetchType.LAZY, mappedBy="mpeilung")
133 public Set<Mpeilpunkt> getMpeilpunkts() {
134 return this.mpeilpunkts;
135 }
136
137 public void setMpeilpunkts(Set<Mpeilpunkt> mpeilpunkts) {
138 this.mpeilpunkts = mpeilpunkts;
139 }
140 }

http://dive4elements.wald.intevation.org