-->
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.  [ 6 posts ] 
Author Message
 Post subject: between primitive and non-primitive identifier type
PostPosted: Tue Jan 27, 2004 2:32 am 
Beginner
Beginner

Joined: Mon Jan 26, 2004 3:31 am
Posts: 20
Location: Jakarta, Indonesia
Hi, I read this on Hibernate docs:

"We further recommend that you use a nullable (ie. non-primitive) type."

Why is that?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 27, 2004 3:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Because you can easier distinguish between allready saved and newly created instances of an object.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 27, 2004 3:45 am 
Beginner
Beginner

Joined: Mon Jan 26, 2004 3:31 am
Posts: 20
Location: Jakarta, Indonesia
Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 27, 2004 4:59 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I use primitive types when memory footprint matters, object otherwise

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 10, 2004 5:47 am 
Beginner
Beginner

Joined: Mon Jan 26, 2004 3:31 am
Posts: 20
Location: Jakarta, Indonesia
emmanuel wrote:
I use primitive types when memory footprint matters, object otherwise


I don't really understand it, do you mean you use primitive types to save memory?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 10, 2004 6:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Thats what is meant, yes


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