Search in sources :

Example 1 with YamlHintShardingStrategyConfiguration

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;
}
Also used : OrderDatabaseHintShardingAlgorithm(io.shardingjdbc.core.fixture.OrderDatabaseHintShardingAlgorithm) YamlHintShardingStrategyConfiguration(io.shardingjdbc.core.yaml.sharding.strategy.YamlHintShardingStrategyConfiguration)

Aggregations

OrderDatabaseHintShardingAlgorithm (io.shardingjdbc.core.fixture.OrderDatabaseHintShardingAlgorithm)1 YamlHintShardingStrategyConfiguration (io.shardingjdbc.core.yaml.sharding.strategy.YamlHintShardingStrategyConfiguration)1