-->
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.  [ 3 posts ] 
Author Message
 Post subject: Data From several Tables
PostPosted: Tue Mar 02, 2004 2:25 pm 
Newbie

Joined: Mon Mar 01, 2004 9:49 pm
Posts: 13
Hi,
Just started with hibernate and I dint quite understand, how hibernate is going to deal data retrieval if I need data from multiple tables.

I have tables TA,TB and TC and corresponding java objects OA, OB, OC.

Now I need to get some data from all the three tables and populate a composite Object OABC.

How do i do this..

The solution i understood is OABC should compose OA, OB, OC and I need to define one-one or one-many or many-many relationships between OABC and OA, OABC and OB and OABC and OC and write queries to get OABC.
Is this the way or is there any other solution...?

Thanks
Rajeev


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2004 2:26 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Read the reference documentation or one of the tutorials linked in the "External Documentation" section. There are many ways to solve this.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 02, 2004 2:28 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
can you give us details on tables TA,TB and TC, are they joined?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.