EnumUserType « Exception « JPA Q&A





1. Exception when Using Gavin's EnumUserType    forum.hibernate.org

I'm trying to make it work like this. But hibernate can't find the class when it's nested in the POJO. class name="ConsumerAccount" table="/*mpm*/consumer_accounts" dynamic-update="true"> .... com.real.app.mpm.domain.ConsumerAccount.Status .... public class ConsumerAccount { public enum Status { ACTIVE, FROZEN }; private Status status; public Status getStatus() { return status; } ...

2. get error in Martin Kersten's flexible EnumUserType solution    forum.hibernate.org

hello i have the same problem! always getting the error: java.lang.IllegalArgumentException: object is not an instance of declaring class did you find a solutions?? my method looks like that: Code: public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException { Object identifier=type.get(rs, names[0]); ...