aspose file tools*
The moose likes Object Relational Mapping and the fly likes Retrieving coplex objects in HQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Retrieving coplex objects in HQL" Watch "Retrieving coplex objects in HQL" New topic
Author

Retrieving coplex objects in HQL

Gaurav Bharadwaj
Greenhorn

Joined: Feb 06, 2008
Posts: 4
Hi all,

I am facing a scenario where I have to get a 3 resultsets(List) in a function and these results are coming in 3 different queries.

I want to retrieve them in one session hit so that all retrievals are done in one session hit. Can you suggest something.
Gaurav Patrikar
Greenhorn

Joined: Jan 10, 2007
Posts: 5
You can try openSessionInViewFilter!
Gaurav Patrikar
Greenhorn

Joined: Jan 10, 2007
Posts: 5
You can try openSessionInViewFilter!
Gaurav Bharadwaj
Greenhorn

Joined: Feb 06, 2008
Posts: 4
But how will I retrieve all the list in one query using "OpenSessionInViewFilter".
In addition to this the presentation layer in my case is seperated by a RMI call hence I dont think that open session filter will be usefull in my case.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Retrieving coplex objects in HQL