Using: Hibernate 3.2cr1, Annotations 3.1.0 Beta 10, EntityManager 3.1.0 Beta 8
I'm currently experimenting with the annotations package, replacing an existing applications hbm.xml files with annotated class files instead.
Using the hbm.xml file approach I can force the use of the discriminator all of the time:
Code:
<discriminator column="type_id" type="string" force="true"
However, I cannot find any way to apply this using the annotations based approach (using the standard syntax or hibernate equivalent). As such, the generated SQL does not contain the "type_id = 'M'" where clause so I receive "WrongClassException".
Is there any way to set this force attribute using annotations?
Thanks
Andy