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: Wich set-Options are available...?
PostPosted: Mon Dec 19, 2005 12:47 pm 
Newbie

Joined: Wed Sep 28, 2005 5:05 am
Posts: 11
Hi,
i´m using Hibernate 2.1.8 and Microsoft SQL 2005.

I have two tables with one-to-many-relation..and a mapping looks like the following:


<class
name="Adressen"
......
<id
column="__Org_RecordNo"
name="OrgRecordNo"
type="long"
>
<generator class="identity" />
</id>
<property
column="ID"
length="8"
name="Id"
not-null="true"
type="string"
/>
......
<set name="AnsprechpartnerSet">
<key column ="AdressID"/>
<one-to-many class="Ansprechpartner"/>
</set>
</class>

If i´m right, that means, Primarykey of Adressen (__Org_RecordNo) is shown to "AdressId" of Ansprechpartner. How do i map, if want to let show "Id" from Adressen to "AdressId" of Ansprechpartner?
I think i need to add or change something inside of the <set-tag...but where and what??

THX for help


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.