Generation of Create_Date and Update_Date columns using Hibernate
- by Rydell
I'm using straight Hibernate 3.0 without annotations.
When saving or updating domain objects, I would like to have Hibernate automatically generate the CREATE_DT and UPDATE_DT fields, as opposed to using database triggers.
What are the best practices for accomplishing this?