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.