Last updated by rajivnarula 8 months ago
grails install-plugin db-reverse-engineer
Also remember to uncomment
from BuildConfig.groovy
Last updated by burtbeckwith 6 months ago
Reverse-engineers a database to Grails domain classes.
The official docs are
here.
Please report any issues in
JIRA
There is no released version of Hibernate Tools that works with the version of Hibernate Core that Grails 2.0 uses, so the plugin has been reworked for version 0.4 to spawn a new process which compiles the plugin classes and runs the reverse-engineering script using older compatible jars. In practice everything should work as it did in earlier versions.Since the plugin generates code from the commandline and isn't a runtime plugin, if this fails in a Grails 2.0 application you should consider creating a Grails 1.3.x application configured similarly and using version 0.3 there. Then copy the generated code into your 2.0 application.Once an updated version of Hibernate Tools is available an updated version of the plugin will be released that works with Grails 1.3 and 2.0 applications.If you're using Grails 1.3 you should use version 0.3 of the plugin. To install it, run
grails install-plugin db-reverse-engineer 0.3
Last updated by burtbeckwith 5 months ago
Last updated by admin 1 year ago