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.