code: private static BeanMappingObject reverse(BeanMappingObject object) {
          BeanMappingObject newObject = new BeanMappingObject();
          // 反转一下属性，主要是一些srcName,srcClass等
          newObject.setSrcClass(object.getTargetClass());
          newObject.setTargetClass(object.getSrcClass());
          newObject.setReversable(object.isReversable());
          newObject.setBatch(object.isBatch());
          newObject.setSrcKey(object.getSrcKey());
          newObject.setTargetKey(object.getTargetKey());
          newObject.setBehavior(object.getBehavior());
          List<BeanMappingField> fields = newObject.getBeanFields();
          for (BeanMappingField field : object.getBeanFields()) {
              // 倒转一下
              BeanMappingField newField = new BeanMappingField();
              BeanMappingFieldAttributes srcFieldAttribute = new BeanMappingFieldAttributes();
              srcFieldAttribute.setName(field.getTargetField().getName());
              srcFieldAttribute.setClazz(field.getTargetField().getClazz());
              BeanMappingFieldAttributes targetFieldAttribute = new BeanMappingFieldAttributes();
              targetFieldAttribute.setName(field.getSrcField().getName());
              targetFieldAttribute.setClazz(field.getSrcField().getClazz());
  
              newField.setSrcField(srcFieldAttribute);
              newField.setTargetField(targetFieldAttribute);
              newField.setDefaultValue(field.getDefaultValue());
              newField.setMapping(field.isMapping());
              newField.setBehavior(field.getBehavior());
              if (StringUtils.isNotEmpty(field.getConvertor()) || StringUtils.isNotEmpty(field.getScript())) {
                  object.setReversable(false);// 强制设置为false
                  return null;
              }
              fields.add(newField);
          }
          return newObject;
      }
docs: 反转处理BeanMappingObject对象