-->
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.  [ 1 post ] 
Author Message
 Post subject: Using Session.isDirty() to Perform Complex Validations
PostPosted: Fri Aug 05, 2005 12:08 pm 
Senior
Senior

Joined: Thu Jun 02, 2005 5:03 pm
Posts: 135
Location: Paris
Hi guys,

I just ran accross a Hibernate wiki entry with the title "Using Session.isDirty() to Perform Complex Validations" (http://www.hibernate.org/156.html - in the second half of the entry) which suggests using IsDirty() method of the Session as part of an Interceptor based validation system.

After reading the article I had a look at the code NH 0.9 and found that even though IsDirty() is implemented in SessionImpl.cs it is not defined in the ISession interface and the implementation actually calls FlushEverything() which seems to be contradict what the article states:

Quote:
This method acts just like flush(), except it doesn't really issue any SQL statements to the database, and Interceptor.postFlush() is not called. Interceptor.onFlushDirty(), however, is called.


Is the above behaviour likely to be supported at some point in the (near) future? I don't really see the point of the existing implementation - is it used elsewhere in the code?

Cheers,

Symon.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.