-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Mapping a Set of dependent objects with custom tuplizer
PostPosted: Tue Feb 05, 2008 8:21 am 
Beginner
Beginner

Joined: Mon Nov 19, 2007 4:40 pm
Posts: 46
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 06, 2008 12:22 pm 
Beginner
Beginner

Joined: Mon Nov 19, 2007 4:40 pm
Posts: 46
Does anyone have a possible solution for this? This is a show stopper for me big time and I really need to do something soon.

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.