-->
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: detach object
PostPosted: Fri Oct 07, 2005 4:39 am 
Regular
Regular

Joined: Tue Nov 04, 2003 12:37 pm
Posts: 57
Hello,

How can I detach/attach the bean ?

How can I use the bean after the session close?

How can I update the bean after detach it from the session ?


Eric


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 07, 2005 4:39 am 
Regular
Regular

Joined: Tue Nov 04, 2003 12:37 pm
Posts: 57
I am using Hibernate 3.1beta !!!


Top
 Profile  
 
 Post subject: detache the object
PostPosted: Fri Oct 07, 2005 7:35 am 
Newbie

Joined: Fri Jun 10, 2005 11:25 am
Posts: 18
Detaching a bean from session:
after calling session.close() the beam becomes detached,
you can create a new session and re-attache it back to persistence manager.
Or
you can also use method session.evict(object o) and keep the session active


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.