Hi,
I'm using Hibernate with Xml mappings. I have an entity that has two fields creationDate and updateDate of type timestamp
, that have to be filled with the current UTC time when the entity is persisted and updated.
I know about the existence of the @PrePersist
and @PreUpdate
annotations, but i don't know how to use their equivalent in my Xml mappings.
Again, i was wondering if Hibernate somehow supports natively the update and creation time set.
Thanks