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.
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to