-->
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: Annotation documentation unclear for getVersion()
PostPosted: Mon Feb 28, 2005 10:51 pm 
Senior
Senior

Joined: Tue Mar 02, 2004 6:17 pm
Posts: 151
The documentation (http://www.hibernate.org/hib_docs/annotations/) mentions getVersion() returns Integer which seems a bit odd to me (I'd expect to return "int") yet it does not discuss this. Is Integer required? Is returning "int" ok? Where can I find out more?

Thanks,
Gili


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 01, 2005 12:48 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This is just a sample. Hibernate Annotations has nothing specific here compared to Hibernate.

Here is a snipset of the Hibernate reference guide
Code:
A version or timestamp property should never be null for a detached instance, so Hibernate will detact any instance with a null version or timestamp as transient, no matter what other unsaved-value strategies are specified. Declaring a nullable version or timestamp property is an easy way to avoid any problems with transitive reattachment in Hibernate, especially useful for people using assigned identifiers or composite keys!

_________________
Emmanuel


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.