-->
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: SaveOrUpdate() in a new session
PostPosted: Sat Nov 05, 2005 1:55 pm 
Hi Guys,

I am not able to update an object in a new session. Here is what I do:

I load an object in firstSession and then close that session.

Then once I finish updating the objecting in UI layer, I call the object.Save() method which opens a new session and calls SaveOrUpdate(). and then Session.Flush and Session.Close. However, no updates are made to DB.

Any ideas?


Top
  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 2:00 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Post the debug-level logs please.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 06, 2005 11:00 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
And the content of the method object.Save().

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


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.