问题描述
我是Grails的新手,
我的问题是如何做db我在Grails 2.5.1中做了这个工作,但是我为Grails 3.1.0.M2版本苦苦挣扎。
预先感谢。
Grails 3没有插件。我开始转换旧版本,但它的工作量比我预期的要多,因为它具有使用Hibernate 4,旧插件只能用于Hibernate 3.
但是生成的文件在Grails 3中不会有任何不同,因为GORM自从GORM一直保持相当一致。由于该插件仅在构建时使用,并且通常只有一次或最多几次,所以我建议您使用相同的数据库配置设置配置Grails 2应用程序并使用该插件,然后将生成的文件移动到您的Grails 3个应用程序。
Need of help.
I am new to Grails,
My question is How to do db-reverse-engineer.?
I did it in Grails 2.5.1 but I am struggling with Grails 3.1.0.M2 version.
Thanks in advance.
There's no plugin for Grails 3. I started to convert the older one but it's more work than I was expecting because it has to work with Hibernate 4, and the old plugin only works with Hibernate 3.
But the generated files wouldn't be any different in Grails 3 than in Grails 2 since GORM has stayed rather consistent. Since the plugin is only used at build time, and often only once or at most a few times, I recommend that you configure a Grails 2 app with the same database config settings and using the plugin there, then moving the generated files to your Grails 3 app.
这篇关于Grails 3.1.0.M2数据库逆向工程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!