Quote: For one, we'd still have to get the discriminator
value into the model somewhere (a thing I've not seen you mention at all for some reason). (end of quote) What do you mean I haven't mentioned it...a tagged value is in the model is it not? All I'm saying is that in addition to your tagged values, you should use the namespace property as well for the default (have you seen the way we handle other configuration things in the source...we do the same thing...namespace property for the default and tagged value to override the default), like this (getConfiguredProperty returns the value of the namespace property): /** * @see org.andromda.cartridges.hibernate.metafacades.HibernateEntity#getHibernateVersion() */ protected String handleGetHibernateVersionProperty() { String version = (String)this.findTaggedValue(HibernateProfile.TAGGEDVALUE_HIBERNATE_VERSION_PROPERTY); if (version == null) { version = (String)this.getConfiguredProperty(HibernateGlobals.HIBERNATE_VERSION_PROPERTY); } return version; } Quote: I want to model the fact that a Book is a Publication whose type is "book." Is this something that can be modelled in UML? If so, how should it be modelled? (end of quote) I would think this would be modeled appropriately though inheritance: A book extends/specializes a publication, therefore a book is a special type of publication. Otherwise, if you want some way of defining the type (other than inheritance) you could create an enumeration called "PublicationType" and on it have the types of publications....give book an attribute of type PublicationType you'd set the Book's publication type as PublicationType::book (but again I would think this would already be apparent through inheritance). -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2318#2318 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