Can someone help me out on how to model the situation that follows:
There is a superclass (or supertype) called
PRODUCTS, which has the subclasses (or subtypes) named
There exists another superclass denominated
CUSTOMERS, with the subclasses denominated
I need to represent some rules that indicate that:
FOODcan only be delivered to
SHOEScan exclusively be distributed to
I have tried the two diagrams shown bellow:
I really do not like the duplication of (a) the same entity type, i.e.,
ORDERS, and (b) the relationships around it.
I am pretty sure this not the proper notation. Should I instead create the relationship on the superclass level and make a note that the restrictions will be implemented at the programming level?