-->
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: How to overcome laziness when putting collection object into
PostPosted: Sun Nov 30, 2003 9:27 pm 
Beginner
Beginner

Joined: Tue Aug 26, 2003 11:33 pm
Posts: 38
I have an anoying problem when putting a persistent collection object into an object cache (jocache, to be exact) for faster later retrieval. Before putting it in the cache, I do use Hibernate.initialize(collection) to force eager loading. But when servlets later retrieve the collection and use the elements in it, many laziness exceptions thrown(ERROR net.sf.hibernate.proxy.LazyInitializer). I badly need someone's help.
Any help is appreciated! Thank you !


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 01, 2003 9:24 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Does object in collection are proxied ?
Code:
<class name="Foo" proxy="Foo">

_________________
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.