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

   ## Question
   
   when I use sharding-jdbc in  project and datasource has table 
T_MSSI_KMS_SECRET_KEY, JPA auto create table throws an exception as belows, 
have you seen this problem?
   
   Caused by: javax.persistence.PersistenceException: [PersistenceUnit: 
default] Unable to build Hibernate Session#******#ption is 
org.apache.shardingsphere.sharding.route.engine.exception.TableExistsException: 
Table 'T_MSSI_KMS_SECRET_KEY' already exists.
   
   here is my JPA setting:
     jpa:
       hibernate:
         ddl-auto: update
         naming:
           physical-strategy: 
org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
   
   here is my shardingsphere setting by javaBean
       private static ShardingTableRuleConfiguration 
getTMssiKmsSecretKeyTableRuleConfiguration() {
           ShardingTableRuleConfiguration result = new 
ShardingTableRuleConfiguration(
                   "T_MSSI_KMS_SECRET_KEY", "db1.T_MSSI_KMS_SECRET_KEY");
           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