-->
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.  [ 1 post ] 
Author Message
 Post subject: UserTypes and the DeepCopy method with Fixed Length CHARS
PostPosted: Thu Dec 14, 2006 5:23 pm 
Newbie

Joined: Thu Jan 20, 2005 3:02 pm
Posts: 13
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

3

My question is about a UserType implemetation for fixed length CHARS. The implementation is found at: http://www.hibernate.org/388.html

Can anyone justify why, in the deepCopy(...) method, one needs to use new String(...)? If the object is a String already it seems that you are taking two unessessary performance hits: 1) A cast, 2) the use of new String(...).

Why not just return the Object value directly, thereby increasing performance.

Thank you for your time and efforts.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.