hibernate criteria filtering on a set of enum values
问题 Hi I'm using Hibernate 3.2 with a 1.6 JDK and Mysql 5.0 I'm trying to use the criteria api to put together a dynamic filter. However when I add a Restriction on a Set of Enums that is a property of my Criteria object I get a org.hibernate.exception.GenericJDBCException. my code is like this: public class FollowUp { ... public Set<AdminCategory> getAdminCategories() {...} public void setAdminCategories(Set<AdminCategory> _arg) { ... } } My hibernate mapping file has a set of Enum values as