I modified Gavin's EnumUserType to map the ordinal instead of the string value. http://www.hibernate.org/312.733.html