Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/model/uinfo/Vegetation.java @ 9038:4c5eeaff554c
Database column "comment" renamed to "notes" (restrictions in Oracle)
author | mschaefer |
---|---|
date | Wed, 02 May 2018 06:56:21 +0200 |
parents | 201817aa7b1c |
children | 361de818f76e |
comparison
equal
deleted
inserted
replaced
9037:1574ce45c98d | 9038:4c5eeaff554c |
---|---|
48 | 48 |
49 private String filename; | 49 private String filename; |
50 | 50 |
51 private String name; | 51 private String name; |
52 | 52 |
53 private String comment; | 53 private String notes; |
54 | 54 |
55 private List<VegetationZone> values; | 55 private List<VegetationZone> values; |
56 | 56 |
57 | 57 |
58 /***** CONSTRUCTORS *****/ | 58 /***** CONSTRUCTORS *****/ |
59 | 59 |
60 public Vegetation() { | 60 public Vegetation() { |
61 } | 61 } |
62 | 62 |
63 | 63 |
64 public Vegetation(final River river, final String filename, final String name, final String comment) { | 64 public Vegetation(final River river, final String filename, final String name, final String notes) { |
65 this.river = river; | 65 this.river = river; |
66 this.filename = filename; | 66 this.filename = filename; |
67 this.name = name; | 67 this.name = name; |
68 this.comment = comment; | 68 this.notes = notes; |
69 this.values = new ArrayList<>(); | 69 this.values = new ArrayList<>(); |
70 } | 70 } |
71 | 71 |
72 /***** METHODS *****/ | 72 /***** METHODS *****/ |
73 | 73 |
109 | 109 |
110 public void setName(final String name) { | 110 public void setName(final String name) { |
111 this.name = name; | 111 this.name = name; |
112 } | 112 } |
113 | 113 |
114 @Column(name = "comment") | 114 @Column(name = "notes") |
115 public String getComment() { | 115 public String getNotes() { |
116 return this.comment; | 116 return this.notes; |
117 } | 117 } |
118 | 118 |
119 public void setComment(final String comment) { | 119 public void setNotes(final String notes) { |
120 this.comment = comment; | 120 this.notes = notes; |
121 } | 121 } |
122 | 122 |
123 @OneToMany | 123 @OneToMany |
124 @JoinColumn(name = "vegetation_id") | 124 @JoinColumn(name = "vegetation_id") |
125 public List<VegetationZone> getValues() { | 125 public List<VegetationZone> getValues() { |