-->
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: Where do generated properties come from?
PostPosted: Thu May 29, 2008 3:14 pm 
Newbie

Joined: Thu May 29, 2008 1:47 pm
Posts: 3
I've looked around but have apparently missed this little detail. When I use @Generated(...) to populate created-date and modified-date fields, where do the values come from: the container or the database?

In the project I'm working on, we will have multiple containers but a single database, therefore I'd like to use the database time and not container time.

Thanks for the info!
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 30, 2008 4:04 pm 
Pro
Pro

Joined: Tue Jun 12, 2007 4:13 am
Posts: 209
Location: Berlin, Germany
@Generated values rely on some database trigger - Hiberate then reads in just generated values to update the entity.

Carlo


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.