zhaoguhong opened a new issue, #17998:
URL: https://github.com/apache/shardingsphere/issues/17998

   EncryptTableRuleConfigurationYamlSwapper  swapToYamlConfiguration method  
loss of the name
   
   
`org.apache.shardingsphere.encrypt.yaml.swapper.rule.EncryptTableRuleConfigurationYamlSwapper#swapToYamlConfiguration
   `
   ## now
   
   ```java
       @Override
       public YamlEncryptTableRuleConfiguration swapToYamlConfiguration(final 
EncryptTableRuleConfiguration data) {
           YamlEncryptTableRuleConfiguration result = new 
YamlEncryptTableRuleConfiguration();
           for (EncryptColumnRuleConfiguration each : data.getColumns()) {
               result.getColumns().put(each.getLogicColumn(), 
columnYamlSwapper.swapToYamlConfiguration(each));
           }
           result.setQueryWithCipherColumn(data.getQueryWithCipherColumn());
           return result;
       }
   ```
   ## after repair
   
   ```java
       @Override
       public YamlEncryptTableRuleConfiguration swapToYamlConfiguration(final 
EncryptTableRuleConfiguration data) {
           YamlEncryptTableRuleConfiguration result = new 
YamlEncryptTableRuleConfiguration();
           for (EncryptColumnRuleConfiguration each : data.getColumns()) {
               result.getColumns().put(each.getLogicColumn(), 
columnYamlSwapper.swapToYamlConfiguration(each));
           }
           result.setName(data.getName());
           result.setQueryWithCipherColumn(data.getQueryWithCipherColumn());
           return result;
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to