-->
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: Can't Delete row Using Current Session ..?
PostPosted: Sat Jul 11, 2009 5:03 am 
Newbie

Joined: Tue Jul 07, 2009 11:09 pm
Posts: 2
I try using getCurrentSession() for my transaction. But if i try to update or delete of my data i can't. I must using transaction.commit() to handle this. As my knowledge if using getCurrentSession() it will be automatically commit and close the session. But if i try to remove hibernate.current_session_context_class="thread" everthing it's ok. Someone give me exlplanation please....


Top
 Profile  
 
 Post subject: Re: Can't Delete row Using Current Session ..?
PostPosted: Sat Jul 11, 2009 11:00 pm 
Senior
Senior

Joined: Wed Sep 19, 2007 9:31 pm
Posts: 191
Location: Khuntien (Indonesia)
nyuby wrote:
I try using getCurrentSession() for my transaction. But if i try to update or delete of my data i can't. I must using transaction.commit() to handle this. As my knowledge if using getCurrentSession() it will be automatically commit and close the session. But if i try to remove hibernate.current_session_context_class="thread" everthing it's ok. Someone give me exlplanation please....


AFAIK, you should commit / rollback manually. Can you show me where you get this info?


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.