Spring roo 和 Google App Engine 一对多无主双向关系

发布于 2024-10-07 14:15:19 字数 463 浏览 0 评论 0原文

我开始使用 Spring Roo 1.1 STS、GWT 和 GAE,我想知道在 Roo 中创建无主双向一对多关系的方法是什么?

Expense-gae.roo 样本给出了一个起点,但我发现关系是单向的,例如从多方到单方(要报告的费用),但我想从报告中遍历费用(例如,将 roo put mappedBy 注释)

似乎我缺少一些基本的东西......

与这个问题相关(刚刚添加了“roo”方面)

拥有的一对多关系和拥有的一对多双向关系之间的区别(Google App Engine Java API)

I'm starting my way with Spring Roo 1.1 STS, GWT and GAE, and I was wondering what is the way to create unowned bidirectional one to many relations in Roo?

The expenses-gae.roo sample gives a starting point, but I see that the relations are unidirectional, e.g. from the many side to the one (expenses to report) but I would like to traverse the expenses from the report (e.g. have roo put the mappedBy annotation)

Seems like I'm missing something basic...

Related to this question (just added the "roo" aspect to it)

Difference between owned one to many relationship and owned one to many bidirectional relationship(Google App Engine Java Api)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

绮筵 2024-10-14 14:15:19

最后我检查了 ROO 不支持谷歌应用程序引擎的一对多关系。您的命令可以在 ROO 中运行,但代码无法编译。
此外,ROO 与 appengine 无关,不会专门为 appengine 创建优化代码。

使用 ROO 创建基础,然后自行构建应用程序。

Last I checked ROO did not support one to many relationships for google app engine. Your commands would work in ROO but the code won't compile.
Also ROO is appengine agnostic and does not create optimized code specifically for appengine.

Use ROO to create the base and then build the app on your own.

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