-->
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: Foreign key in Hibernate mapping when we using composite for
PostPosted: Tue Apr 11, 2006 6:45 am 
Newbie

Joined: Tue Apr 11, 2006 6:32 am
Posts: 1
Hi all
i wanna know about hibernate mapping when we tring to import foreign
key concept in our mapping.my problem is tat i donot have any
mapping code in case of composite key. Lets have a look at an example
below:


<hibernate-mapping>

<class name="Profile_settingDAO" table="profile_setting">
<composite-id>
<key-many-to-one name="user_id" class="ProfilesDAO" column="userid" />

<key-many-to-one name="setting_name" class="SettingDAO" column="name" />

</composite-id>

<many-to-one name="setting_value" column="value" class="Setting_valueDAO" />



</class>

</hibernate-mapping>


so can anyone help me to sortout this problem.so i can move ahead.
i required sol. of this problem urgently.
u can send this reply to my own id amitbdj1481@gmail.com


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.