Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/sq/StaticSQFactory.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 | 9bb7f19cbb6f |
children |
comparison
equal
deleted
inserted
replaced
9725:da398790fa32 | 9726:0a5239a1e46e |
---|---|
13 import java.util.List; | 13 import java.util.List; |
14 | 14 |
15 import net.sf.ehcache.Cache; | 15 import net.sf.ehcache.Cache; |
16 import net.sf.ehcache.Element; | 16 import net.sf.ehcache.Element; |
17 | 17 |
18 import org.apache.log4j.Logger; | 18 import org.apache.logging.log4j.Logger; |
19 import org.apache.logging.log4j.LogManager; | |
19 import org.hibernate.Query; | 20 import org.hibernate.Query; |
20 import org.hibernate.Session; | 21 import org.hibernate.Session; |
21 | 22 |
22 import org.dive4elements.river.artifacts.cache.CacheFactory; | 23 import org.dive4elements.river.artifacts.cache.CacheFactory; |
23 import org.dive4elements.river.backend.SessionHolder; | 24 import org.dive4elements.river.backend.SessionHolder; |
25 | 26 |
26 | 27 |
27 public class StaticSQFactory | 28 public class StaticSQFactory |
28 { | 29 { |
29 private static final Logger log = | 30 private static final Logger log = |
30 Logger.getLogger(StaticSQFactory.class); | 31 LogManager.getLogger(StaticSQFactory.class); |
31 | 32 |
32 public static final String SQL_SQ = | 33 public static final String SQL_SQ = |
33 "SELECT " + | 34 "SELECT " + |
34 "sq.description AS description,"+ | 35 "sq.description AS description,"+ |
35 "ti.start_time AS start_time," + | 36 "ti.start_time AS start_time," + |