Hibernate version: 3.2, annotations version 3.3.1
Mapping documents: annotations
Name and version of the database you are using:Oracle 11i
Hello all.
I have used Hibernate before but I am new to annotations. I need to map a class to DB. In the class there is a Timestamp property which I would like to map to Date field in DB and I want to use @Version annotation on this field. It works fine but the time that is written to DB Date field is jvm time and not DB time. I could not find any way how to switch it to DB time with annotations. I do not want to use XML descriptor to override annotation, since I also use hbm mappings - plus I saw that documentation on XML descriptors is in poor state at the moment. I was forced to switch to hbm for my class and I used <version type="dbtimestamp",...></version>. This is working fine. Is there any way to get the same functionality with Annotations?
_________________ Best regards,
Michael Gantman
|