Hi all,
With hibernate core 3.6.7 I'm using SchemaExport to generate the DB schema from my annotated classes. The generated script is outputted in a file. The problems is the one of generated SQL statement is unsuccessful, but nevertheless it is also outputted in the file. This is the log: [main] DEBUG org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: alter table MESSAGES drop foreign key FK131AF14C3CD7F3EA [main] DEBUG org.hibernate.tool.hbm2ddl.SchemaExport - Table 'messages' doesn't exist
Does anybody know how to configure the SchemaExport class to do not add a SQL statement to the output file if it is unsuccessful ?
|