HHH-6150 - JBoss AS7 integration work

This commit is contained in:
Steve Ebersole 2011-04-22 22:44:52 -05:00
parent 59ec34cffd
commit ddcdd84141
1 changed files with 6 additions and 2 deletions

View File

@ -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) {