jumping in...
Quote:
Do u mean to say to use version i need to have database column which is of the the type identity (autoincrement column)
No, the DB column for version, in this example, would be of type "Int" instead of timestamp. NH will take care of incrementing the version number if it discovers that it must update the database when you call Save() or SaveOrUpdate() on the object.
More accurately, the first time you call Save() on an object, NH will insert "0" (zero) into the DB column but ignores the value of version property. SaveOrUpdate() actually checks the "version" property to discover if it needs to update the object, and if so, will incriment the version property.
If you want to use timestamp in version (although Ints are recommended), I would think you need to set the DB column to datetime (DateTime) and not timestamp. They are subtly different.
-devon