File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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