java Appengine上的多个一对多关系
在使用 JDO 的 googleappengine 中,一个模型与另一个模型之间是否可能存在多种关系?:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class User {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
@Persistent
private String nickname;
@Persistent(mappedBy = "user")
private List<Project> projects;
@Persistent(mappedBy = "user")
private List<File> files;
@Persistent(mappedBy = "user")
private Config config;
....
我遇到了问题,我不确定是否是因为 appengine 不支持这种关系。
In googleappengine using JDO, is it possible to have multiple relationships between a model and another models?:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class User {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
@Persistent
private String nickname;
@Persistent(mappedBy = "user")
private List<Project> projects;
@Persistent(mappedBy = "user")
private List<File> files;
@Persistent(mappedBy = "user")
private Config config;
....
I'm having problems and I'm not sure if it is because appengine doesn't support this kind of relationships.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论