Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/model/BedHeight.java @ 9038:4c5eeaff554c
Database column "comment" renamed to "notes" (restrictions in Oracle)
author | mschaefer |
---|---|
date | Wed, 02 May 2018 06:56:21 +0200 |
parents | a0a0a7f912ab |
children | 766890addcb2 |
comparison
equal
deleted
inserted
replaced
9037:1574ce45c98d | 9038:4c5eeaff554c |
---|---|
49 private ElevationModel oldElevationModel; | 49 private ElevationModel oldElevationModel; |
50 | 50 |
51 private Range range; | 51 private Range range; |
52 | 52 |
53 private String sounding_width_info; | 53 private String sounding_width_info; |
54 private String comment; | 54 private String notes; |
55 | 55 |
56 private List<BedHeightValue> values; | 56 private List<BedHeightValue> values; |
57 | 57 |
58 | 58 |
59 public BedHeight() { | 59 public BedHeight() { |
66 this(river, year, type, locationSystem, curElevationModel, null, range, null, null, null, null); | 66 this(river, year, type, locationSystem, curElevationModel, null, range, null, null, null, null); |
67 } | 67 } |
68 | 68 |
69 | 69 |
70 public BedHeight(final River river, final Integer year, final BedHeightType type, final LocationSystem locationSystem, | 70 public BedHeight(final River river, final Integer year, final BedHeightType type, final LocationSystem locationSystem, |
71 final ElevationModel curElevationModel, | 71 final ElevationModel curElevationModel, final ElevationModel oldElevationModel, final Range range, final String evaluationBy, |
72 final ElevationModel oldElevationModel, final Range range, final String evaluationBy, final String description, final String sounding_width_info, | 72 final String description, final String sounding_width_info, final String notes) { |
73 final String comment) { | |
74 this.river = river; | 73 this.river = river; |
75 this.year = year; | 74 this.year = year; |
76 this.type = type; | 75 this.type = type; |
77 this.locationSystem = locationSystem; | 76 this.locationSystem = locationSystem; |
78 this.curElevationModel = curElevationModel; | 77 this.curElevationModel = curElevationModel; |
79 this.oldElevationModel = oldElevationModel; | 78 this.oldElevationModel = oldElevationModel; |
80 this.range = range; | 79 this.range = range; |
81 this.evaluationBy = evaluationBy; | 80 this.evaluationBy = evaluationBy; |
82 this.description = description; | 81 this.description = description; |
83 this.sounding_width_info = sounding_width_info; | 82 this.sounding_width_info = sounding_width_info; |
84 this.comment = comment; | 83 this.notes = notes; |
85 } | 84 } |
86 | 85 |
87 | 86 |
88 @Id | 87 @Id |
89 @SequenceGenerator(name = "SEQUENCE_BED_HEIGHT_ID_SEQ", sequenceName = "BED_HEIGHT_ID_SEQ", allocationSize = 1) | 88 @SequenceGenerator(name = "SEQUENCE_BED_HEIGHT_ID_SEQ", sequenceName = "BED_HEIGHT_ID_SEQ", allocationSize = 1) |
191 | 190 |
192 public void setSoundingWidthInfo(final String sounding_width_info) { | 191 public void setSoundingWidthInfo(final String sounding_width_info) { |
193 this.sounding_width_info = sounding_width_info; | 192 this.sounding_width_info = sounding_width_info; |
194 } | 193 } |
195 | 194 |
196 @Column(name = "comment") | 195 @Column(name = "notes") |
197 public String getComment() { | 196 public String getNotes() { |
198 return this.comment; | 197 return this.notes; |
199 } | 198 } |
200 | 199 |
201 public void setComment(final String comment) { | 200 public void setNotes(final String notes) { |
202 this.comment = comment; | 201 this.notes = notes; |
203 } | 202 } |
204 | 203 |
205 @OneToMany | 204 @OneToMany |
206 @JoinColumn(name = "bed_height_id") | 205 @JoinColumn(name = "bed_height_id") |
207 public List<BedHeightValue> getValues() { | 206 public List<BedHeightValue> getValues() { |