Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensityFactory.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 import org.hibernate.SQLQuery; | 18 import org.hibernate.SQLQuery; |
18 import org.hibernate.Session; | 19 import org.hibernate.Session; |
19 import org.hibernate.type.StandardBasicTypes; | 20 import org.hibernate.type.StandardBasicTypes; |
20 | 21 |
21 import org.dive4elements.river.artifacts.cache.CacheFactory; | 22 import org.dive4elements.river.artifacts.cache.CacheFactory; |
23 | 24 |
24 | 25 |
25 public class SedimentDensityFactory | 26 public class SedimentDensityFactory |
26 { | 27 { |
27 /** Private log to use here. */ | 28 /** Private log to use here. */ |
28 private static Logger log = Logger.getLogger(SedimentDensityFactory.class); | 29 private static Logger log = LogManager.getLogger(SedimentDensityFactory.class); |
29 | 30 |
30 private static final String DENSITY_CACHE_NAME = "sedimentdensity"; | 31 private static final String DENSITY_CACHE_NAME = "sedimentdensity"; |
31 | 32 |
32 /** Query to get sediment density values and kms. */ | 33 /** Query to get sediment density values and kms. */ |
33 private static final String SQL_SELECT_DENSITY = | 34 private static final String SQL_SELECT_DENSITY = |