Sounds like a need for a "grails generate-ddl" script. That would be awesome...
+1
Jason
On Feb 12, 2008 4:04 AM, Burt Beckwith <
burt@...> wrote:
I've been struggling with this myself - there should be a simple way to use
the Hibernate-generated DDL as an initial script that a DBA can customize for
production. In regular Spring/Hibernate apps I use the Ant tasks (which wrap
SchemaExport) but am having trouble figuring out how to build the
Configuration using .groovy files as domain classes.
SchemaExport does call "log.debug(formatted);" though so as a temporary
measure I configured debug logging in Config.groovy for
category 'org.hibernate.tool.hbm2dll' and I capture the DDL from the log4j
output.
Burt
On Monday 11 February 2008 10:52:27 pm Justin Edelson wrote:
> For "regulatory" reasons, I can't have Hibernate/GORM create tables, etc.
> directly on the database. Is it possible to get these statements output to
> the console (or a file). I'm aware of how this is done with Hibernate, but
> is it possible with GORM?
>
> Thanks,
> Justin
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email