-->
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: <version> question
PostPosted: Thu Jul 08, 2004 7:45 am 
Newbie

Joined: Thu Jul 08, 2004 7:16 am
Posts: 8
Hi,

I have a question about using the <version> element. This is quoted from the docs:
Quote:
Version numbers may be of type long, integer, short, timestamp or calendar.


What if I have a version property of the type integer, but it is wrapped in another class. Like this:

Code:
public class Version implements Serializable {
  protected int version;
}


Is this type of mapping possible? Does the <version> element accept a custom user type?

Code:
public class MyClass {
  protected long id;
  protected Version version;
}


Thanks for reply.


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.