typeClass can name any of the org.hibernate.type.Type derivatives.
Namely:
1) Any impl of org.hibernate.type.Type
2) Any impl of org.hibernate.usertype.UserType, including impls of
org.hibernate.usertype.EnhancedUserType and
org.hibernate.usertype.UserVersionType
3) Any impl of org.hibernate.usertype.CompositeUserType
4) Any impl of org.hibernate.usertype.UserCollectionType
Not sure if/where this is covered in docs tbh.
On Tue 16 Aug 2011 03:44:39 AM CDT, Dmitry Geraskov wrote:
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
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev
--
steve(a)hibernate.org
http://hibernate.org