-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate:Populating specific columns while doing insert in
PostPosted: Fri Sep 06, 2013 2:41 am 
Newbie

Joined: Fri Sep 06, 2013 2:32 am
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.