Here is an eclipse project with a simplified scenario describing my problem. I have a package-info.java file that contains typedef overrides for the package containing the entities. In the holiday entity I am overriding these settings again using the @Type annotation. This does no work.
You will see that if you execute the test on a machine with a timezone other than UTC. The query using the Criteria API will return the date as 12 o'clock AM while the audit query returns 11 o'clock PM (in my local timezone GMT +1:00). This is an inconsistent behavior.
If you are in debugging mode you can see that the Criteria API won't use my custom UTCCalendarType but the audit query does.
|