XiaoHongMao94 opened a new issue #13388:
URL: https://github.com/apache/shardingsphere/issues/13388


   
   I use ShardingSphere data encryption module
   When I use mybaties plus insert a data object of a primary key has not been 
assigned
   The table is not in the configuration file ==> rules.encrypt.tables
   In the form in the configuration file is normal
   
   ## configuration 
   spring:
     shardingsphere:
       rules:
         encrypt:
           encryptors:
             encryptor_aes:
               type: sm4
           tables:
             test_table:
               columns:
                 fname:
                   plainColumn: fname
                   cipherColumn: fname_enc
                   encryptorName: encryptor_aes
   
   ## code
   
   TestTable test = new TestTable();
   testService.saveOrUpdate(test); // **test bean primary key is null**
   
   public interface TestServiceextends IService<TestTable> {
   }
   


-- 
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