HHH-6150 - JBoss AS7 integration work
This commit is contained in:
parent
59ec34cffd
commit
ddcdd84141
|
@ -36,8 +36,12 @@ import org.hibernate.FlushMode;
|
|||
* @author Emmanuel Bernard
|
||||
*/
|
||||
public abstract class ConfigurationHelper {
|
||||
public static void overrideProperties(Properties properties, Map overrides) {
|
||||
properties.putAll( overrides );
|
||||
public static void overrideProperties(Properties properties, Map<?,?> overrides) {
|
||||
for ( Map.Entry entry : overrides.entrySet() ) {
|
||||
if ( entry.getKey() != null && entry.getValue() != null ) {
|
||||
properties.put( entry.getKey(), entry.getValue() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static FlushMode getFlushMode(Object value) {
|
||||
|
|
Loading…
Reference in New Issue