This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
Problems with sessions
HttpSession concept
Statefull session Bean Vs Servlets Session
Needs to improve the performance of the application
session persistance from server perspective