Hibernate 3.2 cr2:
Server: MS Sql 2000
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="database.structure">
<class name="Object">
<id name="id" type="int" column="OBJECTID">
<generator class="native"></generator>
</id>
<version name="createDate" type="timestamp" insert="true" ></version>
</class>
</hibernate-mapping>
Hi,
I try to create a field "createDate", it should save current date at SQL-Insert.
In my case it created the rigth date
BUT by sql-updating it rewrite the date.
How i can avoid it?
thanks.