Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQKmsFactory.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; |
28 * Factory to access ready-made WQKms for other (than computed) 'kinds' of | 29 * Factory to access ready-made WQKms for other (than computed) 'kinds' of |
29 * WST-data. | 30 * WST-data. |
30 */ | 31 */ |
31 public class WQKmsFactory | 32 public class WQKmsFactory |
32 { | 33 { |
33 private static Logger log = Logger.getLogger(WQKmsFactory.class); | 34 private static Logger log = LogManager.getLogger(WQKmsFactory.class); |
34 | 35 |
35 /** Query to get km and wqs for wst_id and column_pos. */ | 36 /** Query to get km and wqs for wst_id and column_pos. */ |
36 public static final String SQL_SELECT_WQS = | 37 public static final String SQL_SELECT_WQS = |
37 "SELECT position, w, q FROM wst_value_table " + | 38 "SELECT position, w, q FROM wst_value_table " + |
38 "WHERE wst_id = :wst_id AND column_pos = :column_pos"; | 39 "WHERE wst_id = :wst_id AND column_pos = :column_pos"; |