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: What is the purpose of UserType.returnedClass() ?
PostPosted: Thu Sep 04, 2008 10:47 am 
Newbie

Joined: Thu Jul 05, 2007 12:04 pm
Posts: 4
I've implemented a couple of user types. I never really understood what the method returnedClass() is for; why does hibernate need this?

(Un)surprisingly, I found that this method is never called while saving/retrieving objects. nullSafeGet() and nullSafeSet() are called, but returnedClass() is never called.
Simply returning null from this method doesn't seem to cause any issues.

Any idea what this method is for? Is it necessary to provide proper implementation of this method?


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.