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 not created nor incremented
PostPosted: Sun Apr 18, 2010 2:48 am 
Newbie

Joined: Sat Apr 17, 2010 11:17 pm
Posts: 8
I am using 3.3.2 and I have this strange behavior. The version is not getting updated. It's saved as null and that's all.

I have a super class that defines the @Version but never gets updated. I event tried to move the get and set to the derived classes to make sure but seems that there is something else that's wrong.

Any ideas, what can be wrong ? I upgraded 2 months back from 3.2 to 3.3.2 and that could have been the time this stopped working.

TIA!


Top
 Profile  
 
 Post subject: Re: Version not created nor incremented
PostPosted: Sun Apr 18, 2010 5:04 pm 
Newbie

Joined: Thu Apr 15, 2010 9:29 pm
Posts: 4
When you say a superclass, is it a mapped superclass?
That's working fine for me, anyway.

Did you check all the prerequisites?
- only one @Version per class
- @Version annotation must be on the primary table (for InheritanceType.JOINED)
- Must be on the supported datatypes (short, int, long, Timestamp)

Otherwise, please the relevant source.


Top
 Profile  
 
 Post subject: Re: Version not created nor incremented
PostPosted: Mon Apr 19, 2010 10:48 pm 
Newbie

Joined: Sat Apr 17, 2010 11:17 pm
Posts: 8
Thanks for replying. What I found was an improper use of copy properties that that nullifies the version info. I may have additional problems with the version but for now I need to fix what I got. Thanks for replying, all the info you pointed out are in place hence the puzzle.

Regards,
Q


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.