-->
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.  [ 1 post ] 
Author Message
 Post subject: lazy-loading of list returned by session.createQuery().list(
PostPosted: Fri Mar 02, 2007 10:18 am 
Newbie

Joined: Fri Mar 02, 2007 9:22 am
Posts: 1
Hello.

I use Hibernate Core 3.2.1. All my entities and collections have lazy loading.

I have something like :

String hql = "from WorkStage ws order by ws.no ";
Query query = session.createQuery(hql);
List<WorkStage> listWorkStages = query.list();

Hibernate loads all records from table associtated with WorkStage class.
What I want is to have lazy loading for this kind of list (listWorkStages).

Please, give me a hint.

Thanks,
Catalin.


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

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.