Title
Associations Considered a Bad Thing
Abstract
The concept of associations in object modeling has recently been a subject of some concern. Most object-oriented analysis and design methods represent associations as separate from object types similar to that of Entity-Relationship (ER) modeling. This article shows that this approach compromises the object-oriented principles of encapsulation and reusability. Some other methods insist that associations are object types. However, this can lead to an infinite regress. We suggest that the proper constructs with which to represent associations are uni-directional mappings represented as pointers embedded in the object types that participate in the association. The pointers must be coupled with rules to ensure the minimal semantic integrity required of an association. We also show how the problem of referential integrity maintenance can be handled in the same way: with rules. The mappings and rules refer only to the public interface of the corresponding classes, thus maintaining integrity without violating encapsulation or thwarting reuse. Finally, we discuss how referential integrity is handled in current object-oriented databases and interpret the notion of "inverses" within our new framework. These conclusions have implications for both database design and for the design of object-oriented CASE tools.
Year
Venue
Field
1997
JOURNAL OF OBJECT-ORIENTED PROGRAMMING
World Wide Web,Programming language,Computer science
DocType
Volume
Issue
Journal
9
9
ISSN
Citations 
PageRank 
0896-8438
22
2.47
References 
Authors
2
3
Name
Order
Citations
PageRank
M. Ian Graham112217.42
Julia Bischof2222.47
Brian Henderson-Sellers31835163.16