1. Exception when Using Gavin's EnumUserType forum.hibernate.orgI'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"> .... |
2. get error in Martin Kersten's flexible EnumUserType solution forum.hibernate.orghello 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]); ... |