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: Will Not Update
PostPosted: Tue Jan 29, 2008 3:57 pm 
Newbie

Joined: Sat Dec 08, 2007 9:22 am
Posts: 10
I am very new to NHibernate and having a problem with updating data.

My class design is based Billy McCafferty's best practices article, with the base IDao implementation. Now I am having no problems with persisting data but if I try and load in the object and then update it nothing happens. The result from SaveOrUpdate() is the entity that I expected, though the database has not changed.

As I said I am new to NHibernate, so I dont know what else you'll need to know in able to help me. Please advise.

Cheers, Chris.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 29, 2008 4:09 pm 
Newbie

Joined: Tue Jul 18, 2006 10:12 am
Posts: 6
Have you made sure to commit/flush the underlying ISession?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 30, 2008 7:45 pm 
Newbie

Joined: Sat Dec 08, 2007 9:22 am
Posts: 10
Hi rduffield,

Thats was the problem, cheers.

Chris.


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.