I have a program which runs fine under Hibernate 2 with a table which uses a date as the primary key. The mapping looks like this:
Code:
<class name="OutSum" table="out_sum">
<cache usage="nonstrict-read-write"/>
<id name="runDate" column="RUN_DATE" type="java.util.Date">
<generator class="assigned"/>
</id> ...
Hibernate will now complain when inserting new records that it "cannot perform lookups on timestamps". In this instance we are using MySQL 4.1.7-nt. Is this changed behavior? Should we be doing this another way?
Thank you
Tom