Revision a27635bd
Added by Andreas Müller over 1 year ago
src/main/java/eu/etaxonomy/cdm/debug/PersistentContextAnalyzer.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
import java.io.PrintStream; |
12 | 12 |
|
13 |
import org.apache.log4j.Logger; |
|
13 |
import org.apache.logging.log4j.LogManager; |
|
14 |
import org.apache.logging.log4j.Logger; |
|
14 | 15 |
import org.hibernate.Session; |
15 | 16 |
|
16 | 17 |
import eu.etaxonomy.cdm.cache.CdmEntityCache; |
... | ... | |
19 | 20 |
/** |
20 | 21 |
* @author a.kohlbecker |
21 | 22 |
* @since 08.11.2017 |
22 |
* |
|
23 | 23 |
*/ |
24 | 24 |
public class PersistentContextAnalyzer extends CdmEntityCache { |
25 | 25 |
|
26 |
@SuppressWarnings("unused") |
|
27 |
private final static Logger logger = LogManager.getLogger(); |
|
26 | 28 |
|
27 | 29 |
private static final char HASH_SEPARATOR = '.'; |
28 | 30 |
|
29 | 31 |
private static final String IN_PERSITENT_CONTEXT = "*"; |
30 | 32 |
|
31 |
private final static Logger logger = Logger.getLogger(PersistentContextAnalyzer.class); |
|
32 |
|
|
33 | 33 |
private Session session; |
34 | 34 |
|
35 | 35 |
private boolean showHashCodes = false; |
36 | 36 |
|
37 |
/** |
|
38 |
* @param entity |
|
39 |
* @param session |
|
40 |
*/ |
|
41 | 37 |
public PersistentContextAnalyzer(CdmBase entity, Session session){ |
42 | 38 |
this.session = session; |
43 | 39 |
this.entities.add(entity); |
Also available in: Unified diff
ref #10072 adapt vaadin to log4j2 and cleanup