-->
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.  [ 2 posts ] 
Author Message
 Post subject: Please help me for generation of XDoclet for Date properties
PostPosted: Sun Aug 29, 2004 1:52 am 
Newbie

Joined: Sun Aug 29, 2004 1:37 am
Posts: 2
Hibernate version: Hibernate 2.x

Hi..

I am sathish.g. I am new to Hibernate. i created a bean with setter and getter methods and with hibernte XDoclet tags. I am using XDoclet for generation hibernate file(hbm file) and for schemaexport in MySQL. It is running successfully.

But i have two properties related to date in my bean.One is 'createddate' and another one is 'updateddate' where both have to be insert automitically in the table when the row is created or updated. I have to fetch this information.

How can i give hibernate xdoclet tags to my bean to devlope the above mentioned scenario using xdoclet.


Please give me the suggestion for this problem.

Thanks in advance.

Thanks&Regards,
Sathish gogineni


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 29, 2004 4:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You can use database triggers - and map it as update and insert false.
Alternatively, you can read the audit user type information on the wiki.
http://hibernate.bluemars.net/48.html


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

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.