hi!
I have a collection of polymorph objects mapped like this:
Code:
<bag name="authInstruments"
cascade="all-delete-orphan"
inverse="true"
lazy="true"
access="field"
>
<key column="userId"/>
<one-to-many class="com.netvisor.uma.persistence.AuthInstrument"/>
</bag>
I have several subclasses of AuthInstruments.
If I add subclasses to the above collection and update the object holding this collection, then only AuthInstruments are saved i.e. only the base classes not the subclasses. This can clearly be seen by the discriminator value...
This is with the Hibernate3 CVS version, but I think it's the same with the old branch...
Am I doing anything wrong? Any ideas? Thanks in advance.