Generation of Create_Date and Update_Date columns using Hibernate
Posted
by Rydell
on Stack Overflow
See other posts from Stack Overflow
or by Rydell
Published on 2010-04-20T22:46:10Z
Indexed on
2010/04/20
22:53 UTC
Read the original article
Hit count: 201
hibernate
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?
© Stack Overflow or respective owner