Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/FlowVelocityMeasurementFactory.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 |
---|---|
9 package org.dive4elements.river.artifacts.model.minfo; | 9 package org.dive4elements.river.artifacts.model.minfo; |
10 | 10 |
11 import java.util.Date; | 11 import java.util.Date; |
12 import java.util.List; | 12 import java.util.List; |
13 | 13 |
14 import org.apache.log4j.Logger; | 14 import org.apache.logging.log4j.Logger; |
15 import org.apache.logging.log4j.LogManager; | |
15 import org.hibernate.SQLQuery; | 16 import org.hibernate.SQLQuery; |
16 import org.hibernate.Session; | 17 import org.hibernate.Session; |
17 | 18 |
18 import org.hibernate.type.StandardBasicTypes; | 19 import org.hibernate.type.StandardBasicTypes; |
19 | 20 |
22 | 23 |
23 | 24 |
24 public class FlowVelocityMeasurementFactory | 25 public class FlowVelocityMeasurementFactory |
25 { | 26 { |
26 /** Private log to use here. */ | 27 /** Private log to use here. */ |
27 private static Logger log = Logger.getLogger( | 28 private static Logger log = LogManager.getLogger( |
28 FlowVelocityMeasurementFactory.class); | 29 FlowVelocityMeasurementFactory.class); |
29 | 30 |
30 /** Query to get description and start year, given name and a km range. */ | 31 /** Query to get description and start year, given name and a km range. */ |
31 public static final String SQL_SELECT_ONE = | 32 public static final String SQL_SELECT_ONE = |
32 "SELECT station, datetime, w, q, v, description " + | 33 "SELECT station, datetime, w, q, v, description " + |