TypeDef Documentation:
http://www.hibernate.org/hib_docs/annot ... e/#d0e2282
@TypeDefs({
@TypeDef(
name = "status",
typeClass = EnumUserType.class,
parameters = {@Parameter(name = "enumClass", value = "com.triview.common.model.Status")}
)
})
I declare various @TypeDefs such as this. They all work fine when used in @Entity classes. When used in a @MappedSuperclass, or an @Embeddable, they fail.
I see from the docs that these are global and double checked that I do not have any duplicate @TypeDef definitions.
Has anyone used these in MappedSuperClass or Embedded successfully?