Laura Werner wrote:
Serge Knystautas wrote:
The SchemaUpdate tool as is does not work in this environment. I need to SQL statements that Hibernate suggests could get the database to a stable environment.

Maybe I'm missing something, but can't you just do something like this:


    java -cp...  net.sf.hibernate.tool.hbm2ddl.SchemaExport
       --text --format --output=update.sql *.hbm.xml

to write the SQL statements to a file such as "update.sql"? You could do this automatically in your deployment-checking script, then check to see if the SQL file is non-empty. (If it's empty, presumably the database is exactly the way Hibernate expects it to be.)

Laura,


The issue is these checks run within a servlet container with an existing hibernate configuration and configured datasources I don't know how to configure.

The issue isn't the functionality so much as the API to get to it beyond the tool. The committers have said that API is stabilizing(ed) now.

--
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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to