怎样表示两个类之间一对多或多对多的关系?
How do I represent a one-to-many, or many-to-many, relationship between two classes?
JPA支持一对一、一对多、多对一和多对多关系。
JPA supports one-to-one, one-to-many, many-to-one, and many-to-many relationships.
注意:关系型DAS假定所有包容关系都是一对多的二元关系。
Note: The Relational DAS assumes that all containment relationships are cardinality one-to-many.
这些包括一对一和一对多构成关联,以及多对一和多对多的聚合关联。
These include one-to-one and one-to-many composition associations and many-to-one and many-to-many aggregation associations.
要实现一对一和一对多的关系,您只需要将一张表的键包括在另一张表中。
To implement one-to-one and one-to-many relationships you merely have to include the key of one table in the other table.
在每个内容单元中,您可以使用一对一的关系,也可以使用一对多的关系。
You can have a one-to-one relationship between a single unit of your content or a one-to-many relationship.
您可以对将一个值映射到多个其他值的查询关系使用一对多或多对多关系。
You can use one-to-many or many-to-many relationships for lookup relationships that map one value to multiple other values.
如果一个出版商可以通过这种方式“持有”多本书籍,就称之为一对多关系。
If one publisher can "have" multiple books in this way, it's called a one-to-many relation.
这里你将集中于一对一和一对多的多重性,你将把它们作为单一的用例处理。
Here, you'll focus on one-to-one and one-to-many multiplicities, which you'll handle as a single case.
这些对象类型之间的关系是“一对多”,即每个策略可以拥有一个或多个路由对象。
The relationship between these types of objects is one-to-many, where each policy can have one or more route objects.
如果您有多种彼此相关的记录,您也可以定义一对多、多对一、和多对多的关系。
If you have multiple types of records that are related to each other, you can define one-to-many, one-to-one, and many-to-many relationships as well.
图2显示了这个场景使用的ORDER和order_items表之间的一对多的关系。
Figure 2 shows the one-to-many relationship between ORDER and ORDER_ITEMS tables used for this scenario.
移动映射类型具有一对多的关系,意味着您可以将一个源参数映射到一个或多个目标参数。
Move mapping types are 1-to-many, which means you can map a source parameter to one or more target parameters.
比如说,在“一对多”关系的多的一端,实体实例最少和最多是多少,有没有限制;
What are the minimum and maximum number of records that can exist on the many side of a one-to-many relationship?
发布-订阅消息传递是针对一条特定消息在应用程序间实现一对多传递语义的消息传递方式,如图2所示。
Publish-and-subscribe messaging is a way to achieve one-to-many delivery semantics between applications for a given message as shown in figure 2.
如您所见,这个数据库非常直观:word与definition和synonym具有一对多的关系。
As you can see, the database is quite straightforward: words have a one-to-many relationship with definitions and synonyms.
递归的关系在单个Employee(团队领导)和许多Employee(团队成员)之间进一步建立起一对多的聚合。
A recursive relation establishes a further one-to-many aggregation between a single Employee (the team leader) and many Employees (the team members).
当此Bean是一对多 CMR 的源,且在部署描述符中为此 Bean指定了 read-ahead 时则例外。
The exception to this is when this bean is the source of a one-to-many CMR, and read-ahead has been specified in the deployment descriptor for this bean.
RMM也将在InfiniBand和共享内存之上运行,能够以多点广播(一对多)和单点广播(一对一)的模式进行操作。
RMM will also work over InfiniBand and Shared memory, and can operate in either multicast (one-to-many) or unicast (one-to-one) mode.
定义对象间的一种一对多的依赖关系,当一个对象的状态发生改变时,所有依赖于它的对象都得到通知并被自动更新。
Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
定义对象间一种一对多的依赖关系,使得每当一个对象改变状态,则所有依赖于它的对象都会得到通知并被自动更新。
Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
有更多的follower、tweet、reply、retweet的用户,在一个实时的一对多对话上下文中更具相关性吗?
Are Twitter users with more followers, tweets, replies or retweets more relevant in the context of real time one-to-many conversations?
更糟糕的是,级联删除不存在,因此如果我使用相同的技术来建模一个“一对多”关系并删除父节点,那么我得到一些无效的子节点。
Worse, cascading deletes don't exist, so if I used the same technique to model a one-to-many relationships, and the parent were removed, I could end up with stale children.
定义了对象间一种一对多依赖关系,使得每当一个对象的状态发生变化时,所有依赖于它的对象都会得到通知,并被自动更新。
Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
在P 2 P模式中,消息的生产者通过队列传送消息给特定的消息消费者,而发布—订阅模式则以一对多或多对多的方式进行消息的传播。
In P2P mode, a message producer sends a message to a specific message consumer through a queue, whereas pub-sub is intended for the one-to-many or many-to-many broadcast of messages.
例如,1919年,在加拿大温哥华岛附近捕获了一条座头鲸,它有一对长达1米多的腿状附肢,还有完整的整套肢骨。
In 1919, for example, a humpback whale with a pair of leglike appendages over a metre long, complete with a full set of limb bones, was caught off Vancouver Island in Canada.
我为这一对幸福的人举杯,愿他们白头偕老,多子多孙。
I raise my glass to the happy pair, wishing them a long life together and many children.
1961年上映的《西区故事》以莎士比亚的《罗密欧与朱丽叶》为大致原型,讲述了一对命途多舛的情侣的故事,他们分别来自两个敌对的相邻地盘。
Loosely based on William Shakespeare's "Romeo and Juliet", 1961's "West side Story" told the tale of star-crossed lovers from opposite sides of their neighborhood.
海洋科学家计划周二加大努力诱导一对任性的鲸鱼游出萨克拉曼多河回到太平洋。
Marine scientists plan to ramp up efforts on Tuesday to coax a couple of wayward whales out of the Sacramento River and back into the Pacific.
海洋科学家计划周二加大努力诱导一对任性的鲸鱼游出萨克拉曼多河回到太平洋。
Marine scientists plan to ramp up efforts on Tuesday to coax a couple of wayward whales out of the Sacramento River and back into the Pacific.
应用推荐