拥有和非拥有关系
拥有关系和非拥有关系到底意味着什么?这些术语经常在 JPA/JDO 文档中使用,但我还没有找到它们的良好定义。
What exactly is meant by owned and unowned relationships? These terms are often used in JPA/JDO documentation, but I haven't found a good definition of them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除了 Nix 的回答之外,在 JPA 中,这个术语有时有不同的含义 - 如果该实体是关系的拥有方,即定义关系的一方,则该关系被称为由实体拥有。要持续的关系状态。
In addition to Nix's anwser, in JPA this term sometimes is used in different meaning - relationship is said to be owned by an entity if that entity is an owning side of the relationship, i.e. a side which defines the state of the relationship to be persisted.
关于拥有/无主关系有很多好的定义。
JDO 中的 Google App Engine 实体关系:
There tons of good definitions out there on Owned/Unowned Relationships.
Google App Engine Entity Relationships in JDO: