@Override
	public void setEntityValue(ResultSet rs, int index, Object entity) throws Exception {
		Field f = getField();
		
		String name = rs.getString(index);
		Enum<?> value = null;
		
		if(name == null) {
			getField().set(entity, value);
			return;
		}
		
		@SuppressWarnings("unchecked")
		Class<? extends Enum<?>> type = (Class<? extends Enum<?>>) f.getType();
		for(Enum<?> e : type.getEnumConstants()) {
			if(e.name().equals(name)) {
				value = e;
				break;
			}
		}
		
		getField().set(entity, value);
	}