comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightFactory.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
12 import java.util.List; 12 import java.util.List;
13 13
14 import net.sf.ehcache.Cache; 14 import net.sf.ehcache.Cache;
15 import net.sf.ehcache.Element; 15 import net.sf.ehcache.Element;
16 16
17 import org.apache.log4j.Logger; 17 import org.apache.logging.log4j.Logger;
18 import org.apache.logging.log4j.LogManager;
18 import org.hibernate.SQLQuery; 19 import org.hibernate.SQLQuery;
19 import org.hibernate.Session; 20 import org.hibernate.Session;
20 import org.hibernate.type.StandardBasicTypes; 21 import org.hibernate.type.StandardBasicTypes;
21 22
22 import org.dive4elements.river.artifacts.cache.CacheFactory; 23 import org.dive4elements.river.artifacts.cache.CacheFactory;
24 25
25 26
26 /** Create BedHeights from database. */ 27 /** Create BedHeights from database. */
27 public class BedHeightFactory { 28 public class BedHeightFactory {
28 /** Private log to use here. */ 29 /** Private log to use here. */
29 private static Logger log = Logger.getLogger(BedHeightFactory.class); 30 private static Logger log = LogManager.getLogger(BedHeightFactory.class);
30 31
31 /** Query to get km and ws for wst_id and column_pos. */ 32 /** Query to get km and ws for wst_id and column_pos. */
32 public static final String SQL_SELECT_SINGLE = 33 public static final String SQL_SELECT_SINGLE =
33 "SELECT bhsv.height, bhsv.station, bhsv.data_gap," + 34 "SELECT bhsv.height, bhsv.station, bhsv.data_gap," +
34 " bhsv.sounding_width, bhs.year" + 35 " bhsv.sounding_width, bhs.year" +

http://dive4elements.wald.intevation.org