-->
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: How to map timestamped or versioned data inside a component.
PostPosted: Wed Jun 21, 2006 12:41 am 
Newbie

Joined: Mon Feb 27, 2006 12:02 pm
Posts: 8
Hello. I have some questions regarding versioned and timestamped data. I understand that Hibernate provide the way to specify if a field contains versioned or timestamped data via <timestamp> and <version> tag. But can I map those fields inside a component. Does Hibernate support those tags inside <component> tag like

Code:
<component ......>
   <property ...../>
   <property ...../>
   <property ...../>
   <timestamp ..../>
</component>


Best regards.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 22, 2006 12:39 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
No, only directly inside the <class> element. However, if you database is doing the versioning for you, you can map the columns in a component using <property formula="YourColumnName">.

If you need to have hibernate do the versioning, you'll have to map the class explicitly.

_________________
Code tags are your friend. Know them and use them.


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.