In the TypeHandler of mybatis,I do it this way :
@Override public EnumSet getNullableResult(ResultSet resultSet, String columnName) throws SQLEx