[jboss-user] [JBossCache] - Re: TreeCache and enum

bstansberry@jboss.com do-not-reply at jboss.com
Wed May 16 11:11:31 EDT 2007


When you say you just switched on TreeCache, do you mean you just started using a 2nd level cache, or were you using a 2nd level cache before and just changed the provider to TreeCache?

If the former, suggest you ask on the Hibernate forums.  Your stack trace shows nothing specific to TreeCache going on; it's all stuff internal to Hibernate and how it creates an entity from the data stored in a 2nd level cache.

Hibernate stores an entity in the cache by breaking down its fields into an Object[] and then storing that array as the value under an Fqn + key.  When Hibernate wants to load an entity from the cache, it retrieves the Object[]. TreeCache just sees the value as an Object[] and doesn't care whether one or more of the elements in the array is an enum. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046182#4046182

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046182



More information about the jboss-user mailing list