-->
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: Primitive vs Wrapper type in Maping file
PostPosted: Sat Jul 29, 2006 12:24 pm 
Newbie

Joined: Thu Jul 20, 2006 5:00 pm
Posts: 16
While creating the mapping file, either we use Java Primitive or Java Wrapper. When I used tool to generate the mapping file for me, it used combination of both primitive and wrapper type. But, which one is good to used from performance point of view and best practice. Could anyone suggest me rule when to use primitive and when to use wrapper. I will definitely go for simple primitive type over wrapper.

Thanks for your time reading my post.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 31, 2006 7:54 am 
Newbie

Joined: Thu Jul 20, 2006 5:00 pm
Posts: 16
Any thought on this ???


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 31, 2006 8:10 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hibernate core doesn't care it uses the same hibernate type for both wrapper and primitive.

the code generator does care though since it is the only way that it can see wether you want primitive or non-primitive.

so technically it only matters if you use codegeneration.

_________________
Max
Don't forget to rate


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.