HHH-13003 Skip processing of empty resource names defined for hibernate.hbm2ddl.import_files
This commit is contained in:
parent
4b19bdc619
commit
97b49349ad
|
@ -44,9 +44,6 @@ public final class ConfigurationHelper {
|
|||
if ( value == null ) {
|
||||
return null;
|
||||
}
|
||||
if ( String.class.isInstance( value ) ) {
|
||||
return (String) value;
|
||||
}
|
||||
return value.toString();
|
||||
}
|
||||
|
||||
|
|
|
@ -483,6 +483,10 @@ public class SchemaCreatorImpl implements SchemaCreator {
|
|||
|
||||
for ( String currentFile : importFiles.split( "," ) ) {
|
||||
final String resourceName = currentFile.trim();
|
||||
if ( "".equals( resourceName ) ) {
|
||||
//skip empty resource names
|
||||
continue;
|
||||
}
|
||||
final ScriptSourceInput importScriptInput = interpretLegacyImportScriptSetting( resourceName, classLoaderService, charsetName );
|
||||
importScriptInput.prepare();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue