Chapter 13
Softcoded Values
Most database applications directly map concepts to tables. The direct approach is effective for applications with well-defined entity types and attributes. However, it fails for applications with open-ended requirements.
Consider person data. Persons are prominent in applications and can involve much data. For example, a police database could have a lengthy description of suspects including height, weight, eye color, and hair color. The top of Figure 13.1 shows a database table for Person, using a direct representation (hardcoding). The bottom shows an alternative representation using softcoding. The columns in boldface are primary keys.
Figure 13.1
If the requirements ...
Get Patterns of Data Modeling now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.