Sorry - i meant SchemaUpdate.
And now you are just saying 3-4 lines, couldn't you just show us what
you are doing and we could add that as a integral part of SchemaUpdate (and even SchemaExport i reckon).
Eh, well the SchemaUpdate code is pretty trivial, if you look at it. Here are the salient lines (I think this is from the 2.0.1 version... 2.0.0 and 2.0.2 use DatabaseMetadata instead of JdbcDatabaseInfo)
JdbcDatabaseInfo info = new JdbcDatabaseInfo(connection, dialect); String[] createSQL = cfg.generateSchemaUpdateScript(dialect, info);
Hibernate doesn't have a solid a barrier between public and private API also (there really has been no need to date). Notice that the relevant method is on Configuration (assume would be a public API) but takes a class from the tool.hbm2ddl class that varies on the version.
-- Serge Knystautas President Lokitech >> software . strategy . design >> http://www.lokitech.com p. 301.656.5501 e. [EMAIL PROTECTED]
------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel