Hi Patrick :)
The SchemaUpdate and SchemaExport tool classes live in the
cirrus.hibernate.tools or net.sf.hibernate.tool.hbm2ddl
packages. You should be aware that SchemaUpdate is not yet
as mature as we might like....
"Patrick Lightbody"
<[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>
Sent by: cc:
[EMAIL PROTECTED] Subject: [Hibernate] Hib2:
Create/update schema pattern
eforge.net
05/02/03 09:59 AM
Anyone got any good patterns for making sure tha the database schema is
up-to-date (create/update/delete) when a web-app starts?
I'm guessing that a ServletListener or Servlet that loads on startup would
execute some code that utilizes Configuration.generateSchemaUpdateScript(),
but I just don't have an idea of how that method is used or what the
desired
procedure is for actually executing those queries.
Any chance that Hibernate will include built-in support to do this
automatically (say, called "dev-mode")?
-Pat
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel
**********************************************************************
Any personal or sensitive information contained in this email and
attachments must be handled in accordance with the Victorian Information
Privacy Act 2000, the Health Records Act 2001 or the Privacy Act 1988
(Commonwealth), as applicable.
This email, including all attachments, is confidential. If you are not the
intended recipient, you must not disclose, distribute, copy or use the
information contained in this email or attachments. Any confidentiality or
privilege is not waived or lost because this email has been sent to you in
error. If you have received it in error, please let us know by reply
email, delete it from your system and destroy any copies.
**********************************************************************
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel