use of io.shardingjdbc.core.yaml.sharding.strategy.YamlHintShardingStrategyConfiguration in project sharding-jdbc by shardingjdbc.
the class YamlShardingStrategyConfigurationTest method createHintShardingStrategyConfig.
private YamlShardingStrategyConfiguration createHintShardingStrategyConfig() {
YamlHintShardingStrategyConfiguration hintShardingStrategyConfig = new YamlHintShardingStrategyConfiguration();
hintShardingStrategyConfig.setAlgorithmClassName(OrderDatabaseHintShardingAlgorithm.class.getName());
YamlShardingStrategyConfiguration result = new YamlShardingStrategyConfiguration();
result.setHint(hintShardingStrategyConfig);
return result;
}
Aggregations