[hibernate-dev] TypeDef annotation

Dmitry Geraskov dgeraskov at exadel.com
Tue Aug 16 04:44:39 EDT 2011


Hey, guys,

I tried to find the requirements for
@TypeDef#typeClass class property. I thought it is neccessary that 
typeClass be an implementation of org.hibernate.usertype.UserType 
interface, but seems it is not true. Could you please help me with the 
questions:
1. If typeClass should implement org.hibernate.usertype.UserType interface
2. Can it be a primitive type
3. Any other requirements

Or would be nice if you point me on some doc which describes al possible 
usages of the annotation.

Thanks,
Dmitry Geraskov





More information about the hibernate-dev mailing list