Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrieving coplex objects in HQL

 
Gaurav Bharadwaj
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try openSessionInViewFilter!
 
Gaurav Patrikar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try openSessionInViewFilter!
 
Gaurav Bharadwaj
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic