Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/WKmsFactory.java @ 9726:0a5239a1e46e 3.2.x
Upgrade to Log4j 2
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 02 Mar 2022 10:26:50 +0100 |
parents | 5e38e2924c07 |
children |
comparison
equal
deleted
inserted
replaced
9725:da398790fa32 | 9726:0a5239a1e46e |
---|---|
11 import java.util.List; | 11 import java.util.List; |
12 | 12 |
13 import net.sf.ehcache.Cache; | 13 import net.sf.ehcache.Cache; |
14 import net.sf.ehcache.Element; | 14 import net.sf.ehcache.Element; |
15 | 15 |
16 import org.apache.log4j.Logger; | 16 import org.apache.logging.log4j.Logger; |
17 import org.apache.logging.log4j.LogManager; | |
17 | 18 |
18 import org.hibernate.Session; | 19 import org.hibernate.Session; |
19 | 20 |
20 import org.hibernate.SQLQuery; | 21 import org.hibernate.SQLQuery; |
21 import org.hibernate.type.StandardBasicTypes; | 22 import org.hibernate.type.StandardBasicTypes; |
30 * WST-data. | 31 * WST-data. |
31 */ | 32 */ |
32 public class WKmsFactory | 33 public class WKmsFactory |
33 { | 34 { |
34 /** Private log to use here. */ | 35 /** Private log to use here. */ |
35 private static Logger log = Logger.getLogger(WKmsFactory.class); | 36 private static Logger log = LogManager.getLogger(WKmsFactory.class); |
36 | 37 |
37 /** Query to get km and ws for wst_id and column_pos. */ | 38 /** Query to get km and ws for wst_id and column_pos. */ |
38 public static final String SQL_SELECT_WS = | 39 public static final String SQL_SELECT_WS = |
39 "SELECT km, w FROM wst_w_values " + | 40 "SELECT km, w FROM wst_w_values " + |
40 "WHERE wst_id = :wst_id AND column_pos = :column_pos"; | 41 "WHERE wst_id = :wst_id AND column_pos = :column_pos"; |