[hibernate-dev] Solution for failing Isolated query cache tests in Hibernate trunk

Steve Ebersole steve at hibernate.org
Thu Jan 14 09:31:56 EST 2010


Oddly it does that already.  Its just that only Serailaizable.class is
ever passed
http://fisheye.jboss.org/browse/Hibernate/core/trunk/core/src/main/java/org/hibernate/Hibernate.java?r=17767#l233

This has to do with the "static" nature of the type system.

On Thu, 2010-01-14 at 11:19 +0100, Emmanuel Bernard wrote:
> On 13 janv. 2010, at 19:10, Steve Ebersole wrote:
> 
> >> 
> >> So, getReturnedClass().getClassLoader() is not the answer here.
> > There is the only answer unfortunately.  Really you'd want the Class of
> > the class implementing Serializable, but given how Hibernate's "type
> > system" works currently, that's not an option.
> 
> Well it could be an option if you do like Annotations does for EnumType and pass the returned class as a parameter of SerializableType but frankly that's a bit painful.
-- 
Steve Ebersole <steve at hibernate.org>
Hibernate.org




More information about the hibernate-dev mailing list