-->
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.  [ 3 posts ] 
Author Message
 Post subject: TransientObjectException
PostPosted: Mon Dec 08, 2003 2:49 pm 
Newbie

Joined: Mon Dec 08, 2003 2:35 pm
Posts: 2
Howdy,



Can someone tell me a little bit more about what causes a TransientObjectException??

I have a Persistent Object that has a method to return a collection (the collection is generated by Hibernate due to a mapping table). When i pass this collection (untouched) to a 'session.filter( aCollection, "order by...")' statement, i get a TransientObjectException.

Since i pass the collection straight from the Persistent object's method into the sess.filter() call, why would I get a TransientObjectException ?? I can understand if i tampered with the collection or made up a new (non-persistent) collection....

Could this exception be generated if the collection was returned from a Hibernate call that used a different Session than the session used in "sess.filter()" call ??? This is my last guess at what might be wrong...


thanks for any help,

-jb


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2003 7:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
the collection must belong to an object that is associated with the current session


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 02, 2006 12:52 am 
Newbie

Joined: Thu Aug 25, 2005 5:33 pm
Posts: 10
Can anybody either explain why a collection must belong to an object that is associated with the current session, or point me to some documentation that can further explain this?


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.  [ 3 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.