Write generated sql to a file for SchemaUpdate.

Description

I would like to export the output from SchemaUpdate to a file. This is implemented for SchemaExport but it is not implemented for SchemaUpdate.
The reason is that I don't want to execute the output from SchemaUpdate directly. Because I want to change it. For example
I want to add drop statements for some tables.
I want to change the generate alter table add column statements to alter table change column in some cases, because the name is changed and I don't want to drop the data of my column.

Could you add this improvement to Hibernate.

Can you also change the ant HibernateTool hbm2ddl
You can set an outputfilename for the case update=false and it runs SchemaExport.
But if it runs SchemaUpdate ( update=true ), then outputfilename is not used.
I would like to use this property for the improvement.

Environment

hibernate 3.1rc3
mysql

Attachments

Assignee

Anthony Patricio

Reporter

Sjoerd Takken

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure