I'm working on huge software, For persisting data, used hibernate with `SQLServer`.
In system every table contains four column. 1. Created User 2. Created Date 3. Modified User 4. Modified Date
From beginning system does not contain any mechanism for entering modified User and modified Date, while insert and update operation.
My Question :.
1) is there any way in hibernate to entering modified User and Modified Date without changing in every DAO class ?
2) Is there any way to provide `user(inform of Id or bean)` to `hibernate` ?
3) If Yes, How can I tell to hibernate that populate this two columns while doing insert or update of records?
Thanks for any help.
|