We have been using the GenericEnumUserType for our extensible enumerations and our classes fail to load in JBoss 6, on a Hibernate 3.6+ container.
The following error is thrown
#abc state=Create: java.lang.NoSuchMethodError: org.hibernate.type.Type
Factory.basic(Ljava/lang/String;)Lorg/hibernate/type/Type;
on the following code
type = (NullableType)TypeFactory.basic(identifierType.getName());
Unfortunately @Enumerated does not work if you need to serialize based on something other than the Enum’s ordinal or name. I’ve managed to find a solution (modified slightly from here).