-->
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.  [ 2 posts ] 
Author Message
 Post subject: Entity with user type attribute in 2nd level cache
PostPosted: Wed Jul 23, 2008 11:59 am 
Newbie

Joined: Wed Jun 25, 2008 5:26 pm
Posts: 3
Hi,

I am using hibernate 2nd level cache with EHCache.
The entity I am storing in the cache has an attribute that implements java.io.Serializable, org.hibernate.usertype.UserType


When the entity comes from database, I have the column populated with value.
However, when the entity comes from 2nd level cache, this particular column is coming as Null.

Is there any issue with user defined typed attributes of an entity when 2nd level cache is used ?

I didn't find any documentation explaining the above ..
Did anyone ever face this issue ? How did you solve this ?


Thank you.
Suchandra


Top
 Profile  
 
 Post subject: Entity with user type attribute in 2nd level cache
PostPosted: Wed Jul 23, 2008 1:00 pm 
Newbie

Joined: Wed Jun 25, 2008 5:26 pm
Posts: 3
If an entity has a user typed attribute, then both assemble and disassemble methods of that user type should be overridden to get the correct value from the cache entity.


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