I'm not an expert ... use that response with care ...


I'm using quite a lot of inheritance in my models. Here is how I do it :



Define a primary key called id on the root class of the inheritance tree (an 
attribute with the <<identifier>> stereotype). Dont define other identifier in 
the tree. Mark all the classes in the tree as <<entity>>.



There's no major problem if the root class is never instanciated but marked as 
an <<entity>>. I actually have abstract root classes in a few cases.



As attributes are inherited from the base class, you should not redefine an 
<<identifier>> on a child class.



Hope it helps ...
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=983#983
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to