Quote: I would really like to model this as in the model linked above, where
the inherited "type" attribute is set to an immutable default value by the subclass. We could know to implement the model with the hibernate discriminator under these conditions. (end of quote) Have you read in the Hibernate docs what the Hibernate discriminitator is for? : http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#mapping-declaration-discriminator Quote: The <discriminator> element is required for polymorphic persistence using the table-per-class-hierarchy mapping strategy and declares a discriminator column of the table. The discriminator column contains marker values that tell the persistence layer what subclass to instantiate for a particular row. A restricted set of types may be used: string, character, integer, byte, short, boolean, yes_no, true_false. (end of quote) So I don't think its made for what you want to do, I still think the enumeration strategy is the best way: can you explain why it won't work? -- Chad Brandon - [EMAIL PROTECTED] http://www.andromda.org _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2348#2348 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