Grails 3.1.0.M2 Database Reverse Engineering

感情迁移 提交于 2019-12-23 02:25:13

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/33253688/grails-3-1-0-m2-database-reverse-engineering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!