| When import files is empty string, org.hibernate.tool.schema.internal.SchemaCreatorImpl.applyImportSources line 484, no check for importFiles to be empty, this leads to a ScriptSourceInput pointing on a folder of which content will be listed in the generated DDL (on this machine ~/Library/Java/Extensions/driver/) NB And if org.hibernate.cfg.AvailableSettings.HBM2DDL_IMPORT_FILES is not set to empty then import.sql is automatically added which is generally not intended in a DDL. (and setting it to null generates a NPE) Current workaround it to set HBM2DDL_IMPORT_FILES to an empty file (/dev/null works fine on Unix). |