-->
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: RelationShip mapping
PostPosted: Mon May 23, 2005 3:23 am 
Newbie

Joined: Mon May 23, 2005 1:07 am
Posts: 1
I am a Hibernate Newbie and have gone through the related documentation but could not find the solution.

We have a Table A which has a one to one relation with table B. Table B has one to many relation with table C. The columns in each of the tables and the relations are as following:

Table A(Class A) : id_a, id_b (Table A has one to one with table B)
Table B(Class B): id_b (The main table in the application)
Table C(Class C): id_c, id_b(Table C has many to one relationship with Table B))

Table B besides being the main application also is a linking table in this case.

Class A has a collection of class C objects. How do I write a hibernate mapping for the above business problem.

Thanks & Regards
Manu


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.