Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/model/uinfo/VegetationType.java @ 9401:361de818f76e
Added color fields to the vegetation zone database table and importer, max days field changed from exclusive to inclusive
author | mschaefer |
---|---|
date | Tue, 14 Aug 2018 14:02:26 +0200 |
parents | 201817aa7b1c |
children | 9b8ba3b83a15 |
comparison
equal
deleted
inserted
replaced
9400:8e100593aec3 | 9401:361de818f76e |
---|---|
69 } | 69 } |
70 | 70 |
71 public void setName(final String name) { | 71 public void setName(final String name) { |
72 this.name = name; | 72 this.name = name; |
73 } | 73 } |
74 | |
74 /** | 75 /** |
75 * Queries all salix ranks from the database, orders by id | 76 * Queries all vegetation types from the database, ordered by id |
76 */ | 77 */ |
77 public static List<VegetationType> getTypes() { | 78 public static List<VegetationType> getTypes() { |
78 final Session session = SessionHolder.HOLDER.get(); | 79 final Session session = SessionHolder.HOLDER.get(); |
79 final Query query = session.createQuery("FROM VegetationType ORDER BY id"); | 80 final Query query = session.createQuery("FROM VegetationType ORDER BY id"); |
80 return new ArrayList<>(query.list()); | 81 return new ArrayList<>(query.list()); |