Quote:
I need to get a list of Publications and be able to determine the "type" of each

Publication, which is why I need to have a "type" attribute, be it a String

or a PublicationType, on Publication whose value is provided by the

subclass (Book)
(end of quote)




Couldn't you just do "instanceof" in your java code to see if a Publication 
entity is an instance of Book (that way you'd know the type).
--
Chad Brandon - [EMAIL PROTECTED]

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


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to