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. is there any way in hibernate to entering modified User and Modified Date without changing every where ?
My question:
1)Is there any way to provide user(inform of Id or bean)
to hibernate
?
2)If Yes,How can I tell to hibernate that populate this two columns while doing insert of records?
Thanks for any help.