This is an automated email from the ASF dual-hosted git repository.
zhonghongsheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 946080bc606 fix example action error (#23997)
946080bc606 is described below
commit 946080bc60610bec379b52b07de6a25842977fc2
Author: Guocheng Tang <[email protected]>
AuthorDate: Sun Feb 5 10:56:31 2023 +0800
fix example action error (#23997)
---
.../src/main/resources/template/jdbc/java/config/sharding.ftl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/java/config/sharding.ftl
b/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/java/config/sharding.ftl
index 3cc34b037c8..cc95da2a54e 100644
---
a/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/java/config/sharding.ftl
+++
b/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/java/config/sharding.ftl
@@ -30,14 +30,14 @@
}
private static ShardingTableRuleConfiguration
getOrderTableRuleConfiguration() {
- ShardingTableRuleConfiguration result = new
ShardingTableRuleConfiguration("t_order");
+ ShardingTableRuleConfiguration result = new
ShardingTableRuleConfiguration("t_order", null);
result.setKeyGenerateStrategy(new
KeyGenerateStrategyConfiguration("order_id", "snowflake"));
// result.setAuditStrategy(new
ShardingAuditStrategyConfiguration(Arrays.asList("sharding_key_required_auditor"),
true));
return result;
}
private static ShardingTableRuleConfiguration
getOrderItemTableRuleConfiguration() {
- ShardingTableRuleConfiguration result = new
ShardingTableRuleConfiguration("t_order_item");
+ ShardingTableRuleConfiguration result = new
ShardingTableRuleConfiguration("t_order_item", null);
result.setKeyGenerateStrategy(new
KeyGenerateStrategyConfiguration("order_item_id", "snowflake"));
return result;
}