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: Persistent session query commands
PostPosted: Tue Feb 26, 2008 4:20 pm 
Newbie

Joined: Tue Feb 26, 2008 3:46 pm
Posts: 1
Hi to all,

I'm developing an application with .net framework 2.0 and nhibernate for
.net 2.0.

I have a problem when deleting an register of table with reference column foreign key constraint.

The query delete to persist on a nhibernate session after exception handling. It's create an error on next list command on nhibernate.

I want discard or reset this state.

Anibody help me ? Sorry for bad english :-)

[]'s Paulo Nascimento(Brazil)

_________________
Paulo Nascimento


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 27, 2008 3:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Jun 13, 2006 11:29 pm
Posts: 315
Location: Calgary, Alberta, Canada
As soon as the ISession throws an exception, its internal state is no longer guaranteed to be consistent. As such, you should roll back your transaction and close the ISession right after that.

_________________
Karl Chu


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.