Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/GaugeFinder.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 | af13ceeba52a |
children |
comparison
equal
deleted
inserted
replaced
9725:da398790fa32 | 9726:0a5239a1e46e |
---|---|
10 | 10 |
11 import java.io.Serializable; | 11 import java.io.Serializable; |
12 | 12 |
13 import java.util.List; | 13 import java.util.List; |
14 | 14 |
15 import org.apache.log4j.Logger; | 15 import org.apache.logging.log4j.Logger; |
16 import org.apache.logging.log4j.LogManager; | |
16 | 17 |
17 import org.hibernate.SQLQuery; | 18 import org.hibernate.SQLQuery; |
18 import org.hibernate.Session; | 19 import org.hibernate.Session; |
19 | 20 |
20 import org.hibernate.type.StandardBasicTypes; | 21 import org.hibernate.type.StandardBasicTypes; |
21 | 22 |
22 /** Find Gauges and respective Q main values. */ | 23 /** Find Gauges and respective Q main values. */ |
23 public class GaugeFinder | 24 public class GaugeFinder |
24 implements Serializable | 25 implements Serializable |
25 { | 26 { |
26 private static Logger log = Logger.getLogger(GaugeFinder.class); | 27 private static Logger log = LogManager.getLogger(GaugeFinder.class); |
27 | 28 |
28 public static final String SQL_DISCHARGE_SECTORS = | 29 public static final String SQL_DISCHARGE_SECTORS = |
29 "SELECT" + | 30 "SELECT" + |
30 " g.id AS gauge_id," + | 31 " g.id AS gauge_id," + |
31 " nmv.name AS name," + | 32 " nmv.name AS name," + |