-->
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: Addidtion to documentation?
PostPosted: Thu May 26, 2005 2:57 am 
Beginner
Beginner

Joined: Thu Sep 16, 2004 4:36 am
Posts: 22
Hi all,



Last 5 days i've been looking for a problem i had with initialisation off a generated key. The type is the primitive long.

There should somewhere be specified that the unsaved-value for long (if you don't set it) should always be 0.
I've overlooked that apparently (and from the 3 thread i wrote no-one answered, so apparently everyon overlooks that).

If this were set in the documentation i think it might help new people.

greetings,


Jochen


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 8:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
So, reading the docs we have this line:

http://www.hibernate.org/hib_docs/v3/re ... ml_single/
"The unsaved-value attribute is important! If the identfier property of your class does not default to the normal Java default value (null or zero), then you should specify the actual default."

...so what's the problem ;) ?

(btw. h3 autodetect this default value now so should be hard to bump into now)

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 9:08 am 
Beginner
Beginner

Joined: Thu Sep 16, 2004 4:36 am
Posts: 22
sorry then i must have overlooked it :/


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.