Hi all,
I've got a field for the last changed timestamp (LAST_CHG_TMS) in a lot of the tables i should map with Hibernate and I'm searching for a solution to do this update automatically.
I thought of implementing a UserType which does ignore the value given for setValue and set the system date instead but this seems to be the wrong path. Since this field can be null Hibernate will not call my method if i do not explicit update this field.
Another solution i thought of was using the <timestamp> element but as far as i understood this is used in combination with versioning, which i don't want to have.
Any ideas or hints?
thx
Roman
|