Hello,
I am currently evaluating Hiberanate for my current project and have a question. My current application has a create and last update date for each of its tables and I would like to use a static formula for the insert and update.
1) DB Triggers - Would like to avoid.
2) Hibernate Interceptors - Would not work because it is vital that the time used is the db time. ie systimestamp.
3) Here is the real question, can this be done on a property or column level? Such that the resulting PreparedStatement looks something like....INSERT INTO FOO (ID, NAME, CR_DATE, LAST_UPD) VALUES (?, ?, systimestamp, systimestamp). I realize that I could use native <sql-insert> but I would like to avoid the overhead of maintaining that.
Regards,
Ryan Lynch
|