Spring roo 和 Google App Engine 一对多无主双向关系
我开始使用 Spring Roo 1.1 STS、GWT 和 GAE,我想知道在 Roo 中创建无主双向一对多关系的方法是什么?
Expense-gae.roo 样本给出了一个起点,但我发现关系是单向的,例如从多方到单方(要报告的费用),但我想从报告中遍历费用(例如,将 roo put mappedBy
注释)
似乎我缺少一些基本的东西......
与这个问题相关(刚刚添加了“roo”方面)
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后我检查了 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.