zhaoguhong opened a new issue, #18044:
URL: https://github.com/apache/shardingsphere/issues/18044
EncryptColumnRuleConfigurationYamlSwapper swapToYamlConfiguration method
loss of the logicColumn
`org.apache.shardingsphere.encrypt.yaml.swapper.rule.EncryptColumnRuleConfigurationYamlSwapper#swapToYamlConfiguration`
## now
```java
@Override
public YamlEncryptColumnRuleConfiguration swapToYamlConfiguration(final
EncryptColumnRuleConfiguration data) {
YamlEncryptColumnRuleConfiguration result = new
YamlEncryptColumnRuleConfiguration();
result.setPlainColumn(data.getPlainColumn());
result.setCipherColumn(data.getCipherColumn());
result.setAssistedQueryColumn(data.getAssistedQueryColumn());
result.setEncryptorName(data.getEncryptorName());
result.setQueryWithCipherColumn(data.getQueryWithCipherColumn());
return result;
}
```
## after repair
```java
@Override
public YamlEncryptColumnRuleConfiguration swapToYamlConfiguration(final
EncryptColumnRuleConfiguration data) {
YamlEncryptColumnRuleConfiguration result = new
YamlEncryptColumnRuleConfiguration();
result.setLogicColumn(data.getLogicColumn());
result.setPlainColumn(data.getPlainColumn());
result.setCipherColumn(data.getCipherColumn());
result.setAssistedQueryColumn(data.getAssistedQueryColumn());
result.setEncryptorName(data.getEncryptorName());
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]