-->
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: Hibernate with multi foreign keys in a relation table.
PostPosted: Tue Mar 22, 2011 12:41 am 
Newbie

Joined: Tue Mar 22, 2011 12:23 am
Posts: 1
Hi,

I just started work on hibernate with struts 2 using weblogic & Oracle. I have following requirements

6 tables -
Product(id, name) , Report(id, name) , Package(id, name) , Class(id, name) , Methods(id, name), data(id, error)

1 relation table - Product_Reference ( product_id, report_id, pkg_id, class_id, mtd_id, data_id)

All mapping define in product_reference tables. Also, they tree data structure - Product have reports, reports have packages, packages have classes and so on.

what will be the optimum mapping for them while saving data or fetching through Hibernate. How we can define best mapping in *.hbm.xml file.

Please, could you drive me in above problem. Thanks in advance.


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.