Skip to Content
The Data Model Resource Book, Volume 3: Universal Patterns for Data Modeling
book

The Data Model Resource Book, Volume 3: Universal Patterns for Data Modeling

by Paul Agnew, Len Silverston
January 2009
Beginner to intermediate
641 pages
26h 48m
English
Wiley
Content preview from The Data Model Resource Book, Volume 3: Universal Patterns for Data Modeling
Silverston c02.tex V2 - 11/21/2008 2:58am Page 52
52 Chapter 2 Setting Up Roles: What Parties Do
In this table you see the PARTY, which is an ORGANIZATION, with party
id ‘‘1001,’’ with current organization name of ‘‘Matrix Ltd.’’ This PARTY
has a credit limit of ‘‘HK$100,000,’’ which is an attribute associated with
their role as a CUSTOMER. You also see a PARTY, that is a PERSON,
with party id of ‘‘1004,’’ and current first name and current last name
of ‘‘Caroline Percy.’’ This PARTY playing the role of CUSTOMER, has a
credit limit of ‘‘£3,445.’’ PARTNER is also a role that can be played by
both a person and an organization. If you examine Table 2-5 you see that
the ORGANIZATION(s) ‘‘Matrix Ltd,’’ ‘‘Card Queen Ltd,’’ and ‘‘Kantowitz
Services’’ are PARTNER(s). Also the PERSON ‘‘Leon Brinkley’’ is a PARTNER,
illustrating that a PARTNER declarative role is related to a PARTY and thus
may be related to an organization or a person.
NOTE
If numerous types of currencies are needed, there would actually be a
currency type id foreign key (that is related to a CURRENCY TYPE entity) in the
CUSTOMER to signify what type of currency applies to the credit limit .Wehavenot
included this foreign key in this example, in order to keep our focus on illustrating
the core aspects of this pattern.
The SUPPLIER role is related directly to ORGANIZATION. This relation-
ship states that ‘‘each ORGANIZATION may be acting
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Data Model Resource Book, Vol. 2: A Library of Data Models for Specific Industries

The Data Model Resource Book, Vol. 2: A Library of Data Models for Specific Industries

Len Silverston
The Data Model Resource Book, Volume 1

The Data Model Resource Book, Volume 1

Len Silverston, Graeme Simsion
Data Model Patterns

Data Model Patterns

David C. Hay, Richard Barker

Publisher Resources

ISBN: 9780470178454Other