Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
I am using column "Nurs_timestamp" that has timestamp data type on SQL Server to make optimistic locking.
On Mapping file, I declare:
<version name="version" column="TIME_STAMP"/>
Unfortunately, SQL server doesn’t allow timestamp field updated but hibernate will always be included this column UPDATE:
update PGNURS set TIME_STAMP=?, NAME=?, ADDRS=? where ID=? and TIME_STAMP=?
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Cannot update a timestamp column.
How can I stop this issue?
Thanks
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: