Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/Range.java @ 201:3169b559ca3c
Build models for wsts, wst columns and q ranges and store them in the backend.
flys-backend/trunk@1549 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 23 Mar 2011 15:22:32 +0000 |
parents | bc3747a371cc |
children | 764835268e2b |
comparison
equal
deleted
inserted
replaced
200:88048d4f6e4d | 201:3169b559ca3c |
---|---|
26 private River river; | 26 private River river; |
27 | 27 |
28 public Range() { | 28 public Range() { |
29 } | 29 } |
30 | 30 |
31 public Range(BigDecimal a, BigDecimal b, River river) { | |
32 this.a = a; | |
33 this.b = b; | |
34 this.river = river; | |
35 } | |
36 | |
31 @Id | 37 @Id |
32 @SequenceGenerator( | 38 @SequenceGenerator( |
33 name = "SEQUENCE_RANGES_ID_SEQ", | 39 name = "SEQUENCE_RANGES_ID_SEQ", |
34 sequenceName = "RANGES_ID_SEQ", | 40 sequenceName = "RANGES_ID_SEQ", |
35 allocationSize = 1) | 41 allocationSize = 1) |
41 return id; | 47 return id; |
42 } | 48 } |
43 | 49 |
44 public void setId(Integer id) { | 50 public void setId(Integer id) { |
45 this.id = id; | 51 this.id = id; |
46 } | |
47 | |
48 public Range(BigDecimal a, BigDecimal b, River river) { | |
49 this.a = a; | |
50 this.b = b; | |
51 this.river = river; | |
52 } | 52 } |
53 | 53 |
54 @Column(name = "a") // FIXME: type mapping needed? | 54 @Column(name = "a") // FIXME: type mapping needed? |
55 public BigDecimal getA() { | 55 public BigDecimal getA() { |
56 return a; | 56 return a; |