-->
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: Auto Insert last modified date?
PostPosted: Mon Feb 12, 2007 6:12 pm 
Newbie

Joined: Tue Feb 06, 2007 5:59 pm
Posts: 14
Hi
Does Hibernate provide a feature to setup initial value
like i want to save last modified date in database , but i dont want to do it in code

can i Do it in .hbm.xml ?

<property name="Date" column="Date">
<column something="xxx"/>
</property>

or it is only possible to do in C# code

user.Date = DateTime.Now();

_________________
www.pakmailmarkham.ca
www.digitmind.com
www.fineartcollectors.com


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.