【发布时间】:2014-05-17 13:49:31
【问题描述】:
我正在根据以下规范设计 XML 和 oracle 数据库。这个问题看起来很混乱,但很简单。我正在尝试为以下设计 UML 图:
A multinational network of hotels owns the hotels in the countries all over the world. etc. The
network of hotels is described by a name and an address of its headquarters. An address of
headquarters consists of country, city, street and building number and it optionally includes
phone and email address.
The network has many hotels in many different countries. However each one of its hotels is
located in a different city. A hotel is described by a name and address that consists of country,
city, street and building number and it optionally includes phone and email address. A name of a
hotel together with a city name uniquely identifies each hotel, e.g. Sheraton at Suwa, or Holiday
Inn at Port Villa.
我的问题是第一段。当我们说“
酒店网络由其总部的名称和地址来描述。”
这是否意味着一家酒店可以有一个或多个总部(因为它说的是复数总部)?下图是否正确或我需要创建另一个实体并定义总部,然后我应该说“总部”包含“酒店”
【问题讨论】:
标签: sql xml oracle oracle10g uml