Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/seddb/model/Hpeilpunkt.java @ 3800:69d19995bc3c 2.9.1
merged flys-backend/2.9.1
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:48 +0200 |
parents | 2ae732e2c65c |
children | 18619c1e7c2a |
comparison
equal
deleted
inserted
replaced
3786:4adc35aa655c | 3800:69d19995bc3c |
---|---|
1 package de.intevation.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 javax.persistence.AttributeOverride; | |
7 import javax.persistence.AttributeOverrides; | |
8 import javax.persistence.Column; | |
9 import javax.persistence.EmbeddedId; | |
10 import javax.persistence.Entity; | |
11 import javax.persistence.FetchType; | |
12 import javax.persistence.JoinColumn; | |
13 import javax.persistence.ManyToOne; | |
14 import javax.persistence.Table; | |
15 | |
16 /** | |
17 * Hpeilpunkt generated by hbm2java | |
18 */ | |
19 @Entity | |
20 @Table(name="HPEILPUNKT" | |
21 ,schema="SEDDB" | |
22 ) | |
23 public class Hpeilpunkt implements java.io.Serializable { | |
24 | |
25 | |
26 private HpeilpunktId id; | |
27 private Hpeilung hpeilung; | |
28 private BigDecimal y; | |
29 private BigDecimal z; | |
30 | |
31 public Hpeilpunkt() { | |
32 } | |
33 | |
34 public Hpeilpunkt(HpeilpunktId id, Hpeilung hpeilung, BigDecimal y, BigDecimal z) { | |
35 this.id = id; | |
36 this.hpeilung = hpeilung; | |
37 this.y = y; | |
38 this.z = z; | |
39 } | |
40 | |
41 @EmbeddedId | |
42 | |
43 | |
44 @AttributeOverrides( { | |
45 @AttributeOverride(name="hpeilungid", column=@Column(name="HPEILUNGID", nullable=false, precision=11, scale=0) ), | |
46 @AttributeOverride(name="punktnr", column=@Column(name="PUNKTNR", nullable=false, precision=5, scale=0) ) } ) | |
47 public HpeilpunktId getId() { | |
48 return this.id; | |
49 } | |
50 | |
51 public void setId(HpeilpunktId id) { | |
52 this.id = id; | |
53 } | |
54 | |
55 @ManyToOne(fetch=FetchType.LAZY) | |
56 @JoinColumn(name="HPEILUNGID", nullable=false, insertable=false, updatable=false) | |
57 public Hpeilung getHpeilung() { | |
58 return this.hpeilung; | |
59 } | |
60 | |
61 public void setHpeilung(Hpeilung hpeilung) { | |
62 this.hpeilung = hpeilung; | |
63 } | |
64 | |
65 | |
66 @Column(name="Y", nullable=false, precision=8, scale=3) | |
67 public BigDecimal getY() { | |
68 return this.y; | |
69 } | |
70 | |
71 public void setY(BigDecimal y) { | |
72 this.y = y; | |
73 } | |
74 | |
75 | |
76 @Column(name="Z", nullable=false, precision=8, scale=3) | |
77 public BigDecimal getZ() { | |
78 return this.z; | |
79 } | |
80 | |
81 public void setZ(BigDecimal z) { | |
82 this.z = z; | |
83 } | |
84 } |