Spring Roo DBRE - 它可以生成 roo 命令吗

发布于 2024-11-15 05:36:59 字数 346 浏览 8 评论 0原文

我尝试过 Spring Roo 的增量数据库逆向工程 (DBRE),您将其指向数据库,它会确定架构。现在,从中获得的信息被放入一个 xml 文件中并用于构建 Spring 骨架。我想知道是否有人能够让它生成 Spring Roo 命令,就像您在 roo shell 中输入的命令一样?我想把它用在不同的项目中。

我真的不希望它能多次工作 - 它不需要往返。

干杯

参考: http://www.springsource.org/roo/guide?w=base-dbre

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

游魂 2024-11-22 05:36:59

我不知道有任何这样的功能,我不认为 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.

再可℃爱ぅ一点好了 2024-11-22 05:36:59

我不知道有人从 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文