Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/WstColumnQRange.java @ 508:a9c7f6ec3a5a 2.3.1
merged flys-backend/2.3.1
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:12 +0200 |
parents | 3169b559ca3c |
children |
comparison
equal
deleted
inserted
replaced
462:ebf049a1eb53 | 508:a9c7f6ec3a5a |
---|---|
1 package de.intevation.flys.model; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 import javax.persistence.Entity; | |
6 import javax.persistence.Id; | |
7 import javax.persistence.Table; | |
8 import javax.persistence.GeneratedValue; | |
9 import javax.persistence.Column; | |
10 import javax.persistence.SequenceGenerator; | |
11 import javax.persistence.GenerationType; | |
12 import javax.persistence.OneToOne; | |
13 import javax.persistence.JoinColumn; | |
14 | |
15 @Entity | |
16 @Table(name = "wst_column_q_ranges") | |
17 public class WstColumnQRange | |
18 implements Serializable | |
19 { | |
20 private Integer id; | |
21 private WstColumn wstColumn; | |
22 private WstQRange wstQRange; | |
23 | |
24 public WstColumnQRange() { | |
25 } | |
26 | |
27 public WstColumnQRange( | |
28 WstColumn wstColumn, | |
29 WstQRange wstQRange | |
30 ) { | |
31 this.wstColumn = wstColumn; | |
32 this.wstQRange = wstQRange; | |
33 } | |
34 | |
35 @Id | |
36 @SequenceGenerator( | |
37 name = "SEQUENCE_WST_Q_RANGES_ID_SEQ", | |
38 sequenceName = "WST_Q_RANGES_ID_SEQ", | |
39 allocationSize = 1) | |
40 @GeneratedValue( | |
41 strategy = GenerationType.SEQUENCE, | |
42 generator = "SEQUENCE_WST_Q_RANGES_ID_SEQ") | |
43 @Column(name = "id") | |
44 public Integer getId() { | |
45 return id; | |
46 } | |
47 | |
48 public void setId(Integer id) { | |
49 this.id = id; | |
50 } | |
51 | |
52 @OneToOne | |
53 @JoinColumn(name = "wst_column_id" ) | |
54 public WstColumn getWstColumn() { | |
55 return wstColumn; | |
56 } | |
57 | |
58 public void setWstColumn(WstColumn wstColumn) { | |
59 this.wstColumn = wstColumn; | |
60 } | |
61 | |
62 @OneToOne | |
63 @JoinColumn(name = "wst_q_range_id" ) | |
64 public WstQRange getWstQRange() { | |
65 return wstQRange; | |
66 } | |
67 | |
68 public void setWstQRange(WstQRange wstQRange) { | |
69 this.wstQRange = wstQRange; | |
70 } | |
71 } | |
72 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | |
73 |