[jOOQ/jOOQ#17274] JPADatabase should throw Hibernate's exceptions when

there is anything going wrong with the SchemaExport
This commit is contained in:
Lukas Eder 2024-09-20 12:11:15 +02:00
parent 4fa5cf64aa
commit e5a53bbc69

View File

@ -173,6 +173,9 @@ public class JPADatabase extends AbstractInterpretingDatabase {
// Hibernate 5.2 broke 5.0 API again. Here's how to do this now:
SchemaExport export = new SchemaExport();
// [#17274] Don't swallow errors during the exports
export.setHaltOnError(true);
export.create(EnumSet.of(TargetType.DATABASE), metadata.buildMetadata());
if (useAttributeConverters)