[ http://jira.andromda.org/browse/HIB-204?page=comments#action_15540 ]
Greg George commented on HIB-204: --------------------------------- You may also want to always specify force="true" when you make a change here, due to (in my opinion) the hibernate bug http://opensource.atlassian.com/projects/hibernate/browse/HHH-219 When traversing down associations to subclasses using a discriminator, hibernate does not use the discriminator by default in the query with this force option. > Manage formulas as discriminators > --------------------------------- > > Key: HIB-204 > URL: http://jira.andromda.org/browse/HIB-204 > Project: Hibernate Cartridge > Type: New Feature > Reporter: Franco Caponi > Assignee: Wouter Zoons > > Hibernate documentation say that is possible using the formula attribute of > the discriminator tag, but AndroMDA doesn't implement this feature. > From Hibernate documentation: > [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. > <discriminator > column="discriminator_column" (1) > type="discriminator_type" (2) > force="true|false" (3) > insert="true|false" (4) > formula="arbitrary sql expression" (5) > /> > [/QUOTE] -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08