Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/RiverAxis.java @ 4736:b195fede1c3b
Remove trailing whitespace.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 02 Jan 2013 13:18:31 +0100 |
parents | 6b1ca6ec4e3c |
children | 18ef819a7c92 |
comparison
equal
deleted
inserted
replaced
4735:94b39073f0f7 | 4736:b195fede1c3b |
---|---|
33 { | 33 { |
34 private Integer id; | 34 private Integer id; |
35 private Integer kind; | 35 private Integer kind; |
36 private River river; | 36 private River river; |
37 private LineString geom; | 37 private LineString geom; |
38 | 38 |
39 public static final int DEFAULT_KIND = 0; | 39 public static final int DEFAULT_KIND = 0; |
40 | 40 |
41 public static final int KIND_OFFICIAL = 1; | 41 public static final int KIND_OFFICIAL = 1; |
42 public static final int KIND_OUTSOURCED = 2; | 42 public static final int KIND_OUTSOURCED = 2; |
43 | 43 |
44 public RiverAxis() { | 44 public RiverAxis() { |
45 } | 45 } |
93 | 93 |
94 | 94 |
95 public static List<RiverAxis> getRiverAxis(String river) { | 95 public static List<RiverAxis> getRiverAxis(String river) { |
96 return getRiverAxis(river, DEFAULT_KIND); | 96 return getRiverAxis(river, DEFAULT_KIND); |
97 } | 97 } |
98 | 98 |
99 public static List<RiverAxis> getRiverAxis(String river, int kind) { | 99 public static List<RiverAxis> getRiverAxis(String river, int kind) { |
100 Session session = SessionHolder.HOLDER.get(); | 100 Session session = SessionHolder.HOLDER.get(); |
101 | 101 |
102 Query query = session.createQuery( | 102 Query query = session.createQuery( |
103 "from RiverAxis where river.name =:river AND kind =:kind"); | 103 "from RiverAxis where river.name =:river AND kind =:kind"); |