-->
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: composite key
PostPosted: Thu Aug 14, 2008 4:40 pm 
Newbie

Joined: Thu Aug 14, 2008 4:26 pm
Posts: 7
Hi All,

I am new to Hiberante. I am not very clear on how to configure a table with a composite key. I am using apache derby. But this is a very basic question. I read the documentation and worked on it. I am still not there . I see a "Could not parse mapping document from resource xyz.hbm.xml."

My question is how to configure a composite key (in a hbmxml) and pojo for the table C below.

Table A
Id_a - (PK)
Name_a

Table B
Id_b - (PK)
Name_b

Table C
Id_a - (PK ....FK from table A)
Id_b - (PK ....FK from table B)
Name_c

Thankq in advance,
Mitr.


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.