comparison backend/src/main/java/org/dive4elements/river/model/BedHeightType.java @ 7252:c894b7b45c4c

Replaced some tabs by spaces. Guys, please configure your editors not to insert tabs!
author Sascha L. Teichmann <teichmann@intevation.de>
date Sat, 05 Oct 2013 12:48:44 +0200
parents 4c3ccf2b0304
children 5e38e2924c07
comparison
equal deleted inserted replaced
7251:3823b8bd6bfd 7252:c894b7b45c4c
70 public void setName(String name) { 70 public void setName(String name) {
71 this.name = name; 71 this.name = name;
72 } 72 }
73 73
74 public static BedHeightType fetchBedHeightTypeForType(String type) { 74 public static BedHeightType fetchBedHeightTypeForType(String type) {
75 return fetchBedHeightTypeForType(type, null); 75 return fetchBedHeightTypeForType(type, null);
76 } 76 }
77 77
78 public static BedHeightType fetchBedHeightTypeForType(String name, Session session) { 78 public static BedHeightType fetchBedHeightTypeForType(String name, Session session) {
79 79
80 if (session == null) { 80 if (session == null) {
81 session = SessionHolder.HOLDER.get(); 81 session = SessionHolder.HOLDER.get();
82 } 82 }
83 83
84 Query query = session.createQuery( 84 Query query = session.createQuery(
85 "from BedHeightType where name=:name"); 85 "from BedHeightType where name=:name");
86 86
87 query.setParameter("name", name); 87 query.setParameter("name", name);

http://dive4elements.wald.intevation.org