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: NHibernate Saves Without Commit() or Flush()
PostPosted: Tue May 18, 2010 5:42 pm 
Newbie

Joined: Tue Dec 22, 2009 8:54 pm
Posts: 3
Hi,

I have a strange situation.

An ASP.NET button click event causes an object in memory to be updated. The object was loaded from NHibernate via Refresh() during Page_Load, but at no time during the entire page life cycle is Commit() or Flush() called.

At some point after the page's OnUnload step, the object and any changes made to it are automatically persisted to the database. I cannot see when or where or why this occurs.

Any ideas?

Cal


Top
 Profile  
 
 Post subject: Re: NHibernate Saves Without Commit() or Flush()
PostPosted: Wed May 19, 2010 2:06 am 
Beginner
Beginner

Joined: Fri Feb 27, 2009 6:07 am
Posts: 38
Location: Moscow,Russia
Quote:
flush, occurs by default at the following points

*from some invocations of Find() or Enumerable()
* from NHibernate.ITransaction.Commit()
*from ISession.Flush()

http://nhforge.org/doc/nh/en/index.html#manipulatingdata-flushing
May be you invoke Find() or Enumerable().


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.