So, how do we map a many-to-many association?
那我们怎样映射多对多关系呢?
Each many-to-many association maps to a distinct table.
每个多对多的关联映射到唯一的表。
A many-to-many association is mapped to a distinct table.
一个多对多关联被映射到一个单独的表。
We didn't bother mapping this many-to-many relationship.
我们不必苦恼映射多对多的关系。
The many-to-many relationship exists in the element called categories.
多对多关系存在于称为 categories的元素中。
There is really a many-to-many relationship between feeds and accounts.
提要与帐户之间存在多对多关系。
Many-to-many interactions: one or more events can affect one or more subscribers.
多对多的交互:一个或多个事件会影响一个或多个订阅者。
Place a many-to-many relation in the entity with the fewest number of elements.
将many - to - many关系包含到实体中,但减少关联元素的数量。
Add a new participant to a given instance (used for many-to-many relationships only).
将新参与者添加到给定实例(仅用于多对多关系)。
JPA supports one-to-one, one-to-many, many-to-one, and many-to-many relationships.
JPA支持一对一、一对多、多对一和多对多关系。
So there is a many-to-many relationship between code blocks and business operations.
因此代码块与业务操作之间存在多对多的关系。
How do I represent a one-to-many, or many-to-many, relationship between two classes?
怎样表示两个类之间一对多或多对多的关系?
Thus, pub/sub-based service interactions can support true many-to-many relationships.
因此,基于pub/sub 的服务交互能够支持真正的多对多关系。
Transparent, providing cross domain visibility via many-to-many artifact relationships.
透明的,以多对多的工件关系支持跨领域可见性。
If the association can be one-to-one, one-to-many or many-to-one, don't use many-to-many.
如果可以用one - to - one、one - to - many或many - to - one的关联,就不要使用many - to - many。
Many-to-many associations (handled by another relation) are outside the scope of this article.
多对多关联(由另一个关联处理)不在本文讨论范围之内。
It can contain any kind of relationship, including subtyping and many-to-many relationships.
它可以包含任何种类的关系,包括图表类型和多到多的关系。
Many-to-many relations require a special mapping and are handled individually in another relation.
多对多关联需要一个特殊映射,它在另一个关联中被单独处理。
And the many-to-many mapping cannot be achieved by GWT because it operates at the code level.
然而GWT不能进行多对多的映射,因为它仅在代码层级进行操作。
In Figure 11 you see how to use an associative table to implement a many-to-many relationship.
图11中,可以看到如何使用关联表来实现多对多关系。
The <many-to-many> tag's class attribute specifies the target class for the many-to-many association.
<many-to-many>标签中的class属性用来指明多对多关系中的目标类。
Instead of taking this approach, we will use a more traditional many-to-many model, as shown in Listing 2.
我们不会采取这种方法,而是使用更传统的多对多模型,如清单2所示。
You saw the grails.converters package in action in " Many-to-many relationships with a dollop of Ajax."
您在 “ 精通Grails:使用 Ajax 实现多对多关系中见过了使用中的 grails.converters”包。
Another possibility is to limit the scope of the document so that the many-to-many relationship disappears.
另一种可能性是限制文档的作用域,以使多对多关系消失。
So you need a table to connect a book to an author, and you must allow those connections to be many-to-many.
因此需要一个表连接图书和作者,而且这种连接必须是多对多的。
The purpose of this relation is to filter the many-to-many associations, which are handled by another relation.
此关联的目的是过滤掉多对多关联,它由另一个关联处理。
You can find examples of one-to-one and many-to-many relationships in the online Grails documentation; see Resources.
在Grails的联机文档中,可以找到一对一和多对多关系的示例,请参阅参考资料。
Specifically, you'll create a many-to-many relationship and use Ajax to make the user experience natural and enjoyable.
具体来讲,将创建一个多对多关系,并通过Ajax使用户体验变得自然而有趣。
And of course, I'll be modeling it as a many-to-many relationship because I hope my runners will run more than one race.
当然,我将把它建模为一个“多对多”关系,因为我希望我的参赛者可以参加多项比赛。
These include one-to-one and one-to-many composition associations and many-to-one and many-to-many aggregation associations.
这些包括一对一和一对多构成关联,以及多对一和多对多的聚合关联。
应用推荐