-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Lazy loading the 'one' end dynamically specified in HQL
PostPosted: Mon Jan 03, 2005 10:25 am 
Newbie

Joined: Fri Oct 22, 2004 6:55 am
Posts: 16
Location: Hamburg, Germany
I have a many-to-one association where the 'one' side is usually loaded eagerly, but for one query it should be loaded lazily. Is it possible to specify this fetching behavior dynamically for a specific HQL query?

With he Criteria API, you can use Criteria#setFetchMode(...). But I need a solution using HQL. And, I do not want to specify the lazy loading behavior in the mapping document.

Best regards,
Oliver


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 10:53 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
No you can't.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.