-->
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.  [ 3 posts ] 
Author Message
 Post subject: <version> element mapped to <component> property
PostPosted: Tue May 24, 2005 11:06 am 
Is there a way to map a column to a <version> property and have the property live inside of a <component>? The schema suggests otherwise, however, I am wondering if anyone knows of a trick to do so.


Top
  
 
 Post subject:
PostPosted: Tue May 24, 2005 1:47 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Not really, but you can create a private property and make it store the value in the component, like this:
Code:
private Version
{
    get { return component.Version; }
    set { component.Version = value; }
}


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 2:25 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 12:59 pm
Posts: 20
never done it myself and can't think of a reason off the top of my head it wouldn't work, but you could create a type that implemented the interface IVersionType


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.