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

Emmanuel Bernard emmanuel at hibernate.org
Thu Jan 14 05:19:01 EST 2010


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.



More information about the hibernate-dev mailing list