[ http://jira.andromda.org/browse/HIB-128?page=history ]
Carlos Cuenca closed HIB-128:
-----------------------------
Resolution: Fixed
Fix Version: 3.2-RC1
Fixed
> discriminator-value in head class missing
> -----------------------------------------
>
> Key: HIB-128
> URL: http://jira.andromda.org/browse/HIB-128
> Project: Hibernate Cartridge
> Type: Bug
> Versions: 3.0 Final, 3.1M1
> Environment: All environments
> Reporter: Jörn Gebhardt
> Assignee: Carlos Cuenca
> Fix For: 3.2-RC1
>
> If inheritance is used for entites and the inheritance strategy is
> "hibernateInheritanceClass" and the root/parent class is not abstarct it
> should have a discriminator-value in its class definition. However, currently
> only the subclasses get the discriminator-value attribute assigned.
> To fix this bug the class definition in the hibernate.hbm.xml.vsl template
> should be extended by the following expression (or something similar):
> #if (!$entity.specializations.empty && $entity.hibernateInheritanceClass &&
> !$entity.abstract) discriminator-value="$entity.entityImplementationName"#end
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click