Hibernate version:3.1
Name and version of the database you are using:Oracle 10g
My project uses interfaces with a custom factory to determine the implementation (of the interface) at runtime. I have solved component creation through the factory with a component tuplizer, but I am not able to map a set of component (dependent) objects as there seems to be no way to define the tuplizer. Without a tuplizer definition for the set mapping, it tries to use the built in AbstractComponentTuplizer.
My mapping currently looks something like this:
Code:
<set name="warranties" table="WARRANTY" lazy="true">
<key>
<column name="ID" />
</key>
<composite-element class="sample.package.Warranty">
<property name="warrantyId" type="java.lang.String">
<column name="WARRANTY_ID" length="10" />
</property>
<property name="duration" type="java.lang.Long">
<column name="DURATION" precision="22" scale="0" />
</property>
.... more properties here ....
</composite-element>
</set>
Is there any way for me to make sure that my tuplizer is used rather than the built in component tuplizer? Is there a mapping that i am missing?
Thanks for your help.