Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/seddb/model/Hpeilpunkt.java @ 5873:1e68eca26b8a
river backend: Moved SedDB hibernate model to org/dive4elements/river/seddb.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Mon, 29 Apr 2013 11:33:01 +0200 |
parents | backend/src/main/java/de/intevation/seddb/model/Hpeilpunkt.java@4dd33b86dc61 |
children | 7ba4815a52a4 |
comparison
equal
deleted
inserted
replaced
5872:bc4e1bf26227 | 5873:1e68eca26b8a |
---|---|
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU AGPL (>=v3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
6 * documentation coming with Dive4Elements River for details. | |
7 */ | |
8 | |
9 package org.dive4elements.seddb.model; | |
10 // Generated 14.06.2012 11:30:57 by Hibernate Tools 3.4.0.CR1 | |
11 | |
12 | |
13 import java.math.BigDecimal; | |
14 import javax.persistence.AttributeOverride; | |
15 import javax.persistence.AttributeOverrides; | |
16 import javax.persistence.Column; | |
17 import javax.persistence.EmbeddedId; | |
18 import javax.persistence.Entity; | |
19 import javax.persistence.FetchType; | |
20 import javax.persistence.JoinColumn; | |
21 import javax.persistence.ManyToOne; | |
22 import javax.persistence.Table; | |
23 | |
24 /** | |
25 * Hpeilpunkt generated by hbm2java | |
26 */ | |
27 @Entity | |
28 @Table(name="HPEILPUNKT" | |
29 ,schema="SEDDB" | |
30 ) | |
31 public class Hpeilpunkt implements java.io.Serializable { | |
32 | |
33 | |
34 private HpeilpunktId id; | |
35 private Hpeilung hpeilung; | |
36 private BigDecimal y; | |
37 private BigDecimal z; | |
38 | |
39 public Hpeilpunkt() { | |
40 } | |
41 | |
42 public Hpeilpunkt(HpeilpunktId id, Hpeilung hpeilung, BigDecimal y, BigDecimal z) { | |
43 this.id = id; | |
44 this.hpeilung = hpeilung; | |
45 this.y = y; | |
46 this.z = z; | |
47 } | |
48 | |
49 @EmbeddedId | |
50 | |
51 | |
52 @AttributeOverrides( { | |
53 @AttributeOverride(name="hpeilungid", column=@Column(name="HPEILUNGID", nullable=false, precision=11, scale=0) ), | |
54 @AttributeOverride(name="punktnr", column=@Column(name="PUNKTNR", nullable=false, precision=5, scale=0) ) } ) | |
55 public HpeilpunktId getId() { | |
56 return this.id; | |
57 } | |
58 | |
59 public void setId(HpeilpunktId id) { | |
60 this.id = id; | |
61 } | |
62 | |
63 @ManyToOne(fetch=FetchType.LAZY) | |
64 @JoinColumn(name="HPEILUNGID", nullable=false, insertable=false, updatable=false) | |
65 public Hpeilung getHpeilung() { | |
66 return this.hpeilung; | |
67 } | |
68 | |
69 public void setHpeilung(Hpeilung hpeilung) { | |
70 this.hpeilung = hpeilung; | |
71 } | |
72 | |
73 | |
74 @Column(name="Y", nullable=false, precision=8, scale=3) | |
75 public BigDecimal getY() { | |
76 return this.y; | |
77 } | |
78 | |
79 public void setY(BigDecimal y) { | |
80 this.y = y; | |
81 } | |
82 | |
83 | |
84 @Column(name="Z", nullable=false, precision=8, scale=3) | |
85 public BigDecimal getZ() { | |
86 return this.z; | |
87 } | |
88 | |
89 public void setZ(BigDecimal z) { | |
90 this.z = z; | |
91 } | |
92 } |