NHibernate 1.2
Hi,
In my mapping, I have:
Code:
<version name="version" access="field" column="version" type="timestamp" generated="always"/>
However, when generating the schema from hibernate into MySQL, it creates a version column "datetime", not "timestamp". When I save objects, the version is not updated by the database and it fails to store relation FK's.
If I create the schema by hand and make version column "timestamp" instead of "datetime", it works fine.
I was hoping for a "sql-type='' " for <version> but it lacks one. Is there a way to force the schema generator to use "timestamp"?
thank you,
Sessh
PS. shoot, wrong forum by mistake. sorries!