-->
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 Query
PostPosted: Sun Apr 11, 2004 6:58 pm 
Newbie

Joined: Sun Apr 11, 2004 6:37 pm
Posts: 1
Donno if this is a stupid question but wanna clear it off.

Does hibernate help only when a query is made? or if i have the O-R mapping configured in xml, and if i use object.functionName(), will i get the value?

My problem is....I have to show information from multiple tables into a table format. I make a initial query and get some results. The number of rows fetched could be in hundreds. and each row fetched contain some id's. now, I have to pick each id of each column and from different other tables, pull the name of this id. this I have to do for all the rows.

I saw some where that without writing a query, the data is fetched. like calling the name function on the object for that id. is this possible?

I cannot imagine calling DB multiple times (infact if i have 7 columns and 100 rows fetched, I have to make 700 calls?) :O

Help me........

Thanks,
Padma.


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.