-->
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.  [ 1 post ] 
Author Message
 Post subject: using "Set" tag but how to add non primary key???
PostPosted: Tue Apr 22, 2008 10:02 am 
Newbie

Joined: Tue Apr 22, 2008 9:55 am
Posts: 2
I'm using the <SET> tag, typically with the <Key> columns, but I now need to add a non primary key in my set clause.. This is what I currently have, does anybody know how I can add a column that is not part of the primary key in my example???

<set name="PremDataRecords" inverse="true">
<key>
<column name="HICN_CAN" length="9" />
<column name="HICN_BIC_CAT" length="2" />
<column name="CONTRACT_OCC" precision="3" scale="0" />
</key>
<one-to-many class="com.ngsmedicare.hbm.ContrPremium" />
</set>[/b]


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

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.