-->
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: composite-id and joined-subclass
PostPosted: Thu Apr 14, 2005 9:57 am 
Newbie

Joined: Sun Nov 09, 2003 12:34 pm
Posts: 15
Hibernate version:2.1


Code:
<hibernate-mapping >
   <class name="TenderLineItemBean" table="TR_LTM_TND" >
   
      <composite-id >
         <key-property name="aiTrn" column="AI_TRN" type="string" />
         <key-property name="aiLnItm" column="AI_LN_ITM" type="integer"/>
      </composite-id>

.
.
.
.
      <joined-subclass name="TenderLineItemCheckBean" table="TR_LTM_CHK_TND" >




We have composite-id in the parent class, I want to have the same composite-id in my subclass as well. But, when I try the composite-id in the joined-subclass, the mapping document is not loaded. It expects <key element under <joined-subclass

Any ideas how can I make this work.

Thanks,


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 14, 2005 10:11 am 
Newbie

Joined: Sun Nov 09, 2003 12:34 pm
Posts: 15
Sorry for botheration I wan't thinking

Code:
      <joined-subclass name="TenderLineItemCheckBean" table="TR_LTM_CHK_TND" >
         <key>
            <column name="AI_TRN" />
            <column name="AI_LN_ITM" />
         </key>
   


This worked fine.


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.