I have a class model that has a superclass-subclass structure (e.g., the id is in the superclass). I have several tables that implement the subclasses. I am having difficulty mapping the id from the superclass to multiple database tables. It seems that VP-UML EE (Evaluation Copy) will requires all the attributes to be placed in classes without a superclass/subclass structure. How do I map superclass attributes? Thanks.
Hi BrettL,
You can keep the superclass/subclass structure and define Discriminator for your subclasses. Please read the following page for details about Discriminator:
http://206.222.18.10/resources/content/product/dbva/dbva3DesignerGuide/html/DBVADesignerGuide-DHTMLHelp-5-1.html#wp9000138
Hope this helps.
Best regards,
Jick
The text shows how to use discriminator when the superclass is the implementation table. We have tables for the subclasses. The attributes of the superclass map to more than one table. How is this done in VP tool?
Hi BrettL,
I think changing the subclass inheritance strategy might help. I prepared a movie to show you what I am talking about. Please watch at:
http://files4.visual-paradigm.com/200609/Jick/subclass-mapping-20060908.htm
Please take a look, and let me know if it can fulfill your need or not. Thank you.
Have a nice weekend!
Best regards,
Jick