prueba

Page 40

Entity and Attribute Names

A good rule to use when naming attributes is to use the entity name as a prefix. The rule here is:

Prefix qualifies

Suffix clarifies

Using this rule, you can easily validate the design and eliminate many common design problems. For example, in the CUSTOMER entity, you can name the attributes “customer-name,” “customer-number,” “customer-address,” and so on. If you are tempted to name an attribute “customer-invoice-number,” you use the rule to check that the suffix “invoice-number” tells you more about the prefix “customer.” Since it does not, you must move the attribute to a more appropriate location, such as INVOICE. You may sometimes find that it is difficult to give an entity or attribute a name without first giving it a definition. As a general principle, providing a good definition for an entity or attribute is as important as providing a good name. The ability to find meaningful names comes with experience and a fundamental understanding of what the model represents. Since the data model is a description of a business, it is best to choose meaningful business names wherever that is possible. If there is no business name for an entity, you must give the entity a name that fits its purpose in the model.

Synonyms, Homonyms, and Aliases Not everyone speaks the same language. Not everyone is always precise in the use of names. Since entities and attributes are identified by their names in a data model, you need to ensure that synonyms are resolved to ensure that they do not represent redundant data. Then you need to precisely define them so that each person who reads the model can understand which facts are captured in which entity. It is also important to choose a name that clearly communicates a sense of what the entity or attribute represents. For example, you get a clear sense that there is some difference among things called PERSON, CUSTOMER, and EMPLOYEE. Although they can all represent an individual, they have distinct characteristics or qualities. However, it is the role of the business user to tell you whether or not PERSON and EMPLOYEE are two different things or just synonyms for the same thing.

40 Methods Guide


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.