comparison flys-backend/src/main/java/de/intevation/flys/model/GrainFraction.java @ 5439:7aeb2c101628

removed unit from model and importer for grain fractions (its always mm, otherwise a typo)
author Tom Gottfried <tom.gottfried@intevation.de>
date Tue, 26 Mar 2013 18:04:59 +0100
parents 71175502d868
children 3bd786772798
comparison
equal deleted inserted replaced
5438:91b14ade2149 5439:7aeb2c101628
36 private String name; 36 private String name;
37 37
38 private Double lower; 38 private Double lower;
39 private Double upper; 39 private Double upper;
40 40
41 private Unit unit;
42
43 41
44 public GrainFraction() { 42 public GrainFraction() {
45 } 43 }
46 44
47 public GrainFraction(String name, Double lower, Double upper, Unit unit) { 45 public GrainFraction(String name, Double lower, Double upper) {
48 this.name = name; 46 this.name = name;
49 this.lower = lower; 47 this.lower = lower;
50 this.upper = upper; 48 this.upper = upper;
51 this.unit = unit;
52 } 49 }
53 50
54 @Id 51 @Id
55 @SequenceGenerator( 52 @SequenceGenerator(
56 name = "SEQUENCE_GRAIN_FRACTION_ID_SEQ", 53 name = "SEQUENCE_GRAIN_FRACTION_ID_SEQ",
93 90
94 public void setUpper(Double upper) { 91 public void setUpper(Double upper) {
95 this.upper = upper; 92 this.upper = upper;
96 } 93 }
97 94
98 @OneToOne
99 @JoinColumn(name = "unit_id")
100 public Unit getUnit() {
101 return unit;
102 }
103
104 public void setUnit(Unit unit) {
105 this.unit = unit;
106 }
107 } 95 }
108 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 96 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org