TAILIEUCHUNG - Database Modeling & Design Fourth Edition- P11

Database Modeling & Design Fourth Edition- P11 | Class Diagrams 37 among multiple objects. For example a Car may belong to more than one Car Pool. The aggregation association is indicated with a hollow diamond attached to the class that holds the parts. Figure indicates that a Car Pool aggregates Cars. Composition is another part of association in which the parts are strictly owned not shared. For example a Frame is part of a single Car. The notation for composition is an association adorned with a solid black diamond attached to the class that owns the parts. Figure indicates that a Frame is part of the composition of a Car. Generalization is another common relationship. For example Sedan is a type of car. The Car class is more general than the Sedan class. Generalization is indicated by a solid line adorned with a hollow arrowhead pointing to the more general class. Figure shows generalization from the Sedan class to the Car class. Class Diagrams for Database Design The reader may be interested in the similarities and differences between UML class diagrams and ER models. Figures through parallel some of the figures in Chapter 2 allowing for easy comparison. We then turn our attention to capturing primary key information in Figure . We conclude this section with an example database schema of the music industry illustrated by Figures through . Figure illustrates UML constructs for relationships with various degrees of association and multiplicities. These examples are parallel to the ER models shown in Figure . You may refer back to Figure if you wish to contrast UML constructs with ER constructs. Associations between classes may be reflexive binary or n-ary. Reflexive association is a term we are carrying over from ER modeling. It is not a term defined in UML although it is worth discussing. Reflexive association relates a class to itself. The reflexive association in Figure means an Employee in the role of manager is associated with many managed Employees.

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.