Spring Roo DBRE - 它可以生成 roo 命令吗
我尝试过 Spring Roo 的增量数据库逆向工程 (DBRE),您将其指向数据库,它会确定架构。现在,从中获得的信息被放入一个 xml 文件中并用于构建 Spring 骨架。我想知道是否有人能够让它生成 Spring Roo 命令,就像您在 roo shell 中输入的命令一样?我想把它用在不同的项目中。
我真的不希望它能多次工作 - 它不需要往返。
干杯
I have tried Spring Roo's Incremental Database Reverse Engineering (DBRE) where you point it at a database and it determines the schema. Now the information obtained from this is put into an xml file and used to build the Spring skeleton. I am wondering whether anyone has been able to get it to produce Spring Roo commands like what you type in to the roo shell? I'd like to take this and use it in a different project.
I don't really expect this to work more than once - It doesn't need to round-trip.
Cheers
References:
http://www.springsource.org/roo/guide?w=base-dbre
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道有任何这样的功能,我不认为 Roo 在内部生成
entity
命令。尽管您可能不知道 此问题。
I don't know of any such functionality, I don't think Roo generates
entity
commands internally.Although you might not be aware of the
--excludeTables
and--includeTables
parameters described in this issue.我不知道有人从 dbre.xml 文件生成了 Roo 命令,但您可以通过编写和应用合适的 XSLT 模板来完成此操作。我曾经使用 Torque XML 架构文件(dbre.xml 文件所基于的)来执行此操作,以生成数据库脚本和 HTML 文档页面。
I'm not aware of anyone having generated Roo commands from the dbre.xml file, but you could do this by writing and applying a suitable XSLT template. I used to do this with Torque XML schema files, on which the dbre.xml file is based, to generate database scripts and HTML documentation pages.