-->
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: Proxy Session is open but its target session is closed!
PostPosted: Tue Apr 11, 2006 11:13 pm 
Beginner
Beginner

Joined: Thu Aug 28, 2003 3:09 pm
Posts: 39
Location: Brazil
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

3.0.5 or 3.1.3


Hi all,

While playing with lazy models, I'm in a situation where I have a proxy which has its Session property open, but its target session is closed.

Is this normal?

I call session.lock() on this proxy but the target session property is closed and so I get lazyinitialization exceptions. :(

What I mean by target session is closed is that target holds a lazy collection which is mapped with cascade="lock" but this PersistentSet session isn't open with calls to lock.

What could be causing that? Am I missing something?

Thanks in advance.


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.