all tests running sucessful, however unitil is still patched to not use jdbc batch...
[cdmlib.git] / cdmlib-persistence / src / main / java / eu / etaxonomy / cdm / persistence / hibernate / TableGeneratorGlobalOverride.java
1 package eu.etaxonomy.cdm.persistence.hibernate;
2
3 import java.util.Properties;
4
5 import org.springframework.stereotype.Component;
6
7 @Component
8 class TableGeneratorGlobalOverride {
9
10 public TableGeneratorGlobalOverride(){}
11
12 // public static final ThreadLocal<Properties> threadLocalProperties = new ThreadLocal<Properties>();
13
14 public static Properties properties;
15
16 public static Properties getProperties() {
17 // return threadLocalProperties.get();
18 return TableGeneratorGlobalOverride.properties;
19 }
20
21 public void setProperties(Properties properties) {
22 // threadLocalProperties.set(properties);
23 TableGeneratorGlobalOverride.properties = properties;
24 }
25
26 }