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 <st...@hibernate.org>
Hibernate.org

_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to