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.
|