Loading sharding-jdbc-example/broadcast-table-example/broadcast-table-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/broadcast/table/raw/jdbc/JavaConfigurationExample.java +2 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ package org.apache.shardingsphere.example.broadcast.table.raw.jdbc; import org.apache.shardingsphere.example.broadcast.table.raw.jdbc.config.ShardingDatabasesConfigurationPrecise; import org.apache.shardingsphere.example.broadcast.table.raw.jdbc.config.ShardingDatabasesConfiguration; import org.apache.shardingsphere.example.common.jdbc.repository.CountryRepositroyImpl; import org.apache.shardingsphere.example.common.jdbc.service.CountryServiceImpl; import org.apache.shardingsphere.example.common.service.CommonService; Loading @@ -32,7 +32,7 @@ import java.sql.SQLException; public class JavaConfigurationExample { public static void main(final String[] args) throws SQLException { DataSource dataSource = new ShardingDatabasesConfigurationPrecise().getDataSource(); DataSource dataSource = new ShardingDatabasesConfiguration().getDataSource(); CommonService countryService = getCountryService(dataSource); countryService.initEnvironment(); countryService.processSuccess(); Loading sharding-jdbc-example/broadcast-table-example/broadcast-table-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/broadcast/table/raw/jdbc/YamlConfigurationExample.java +0 −3 Original line number Diff line number Diff line Loading @@ -27,9 +27,6 @@ import java.io.File; import java.io.IOException; import java.sql.SQLException; /* * Please make sure master-slave data sync on MySQL is running correctly. Otherwise this example will query empty data from slave. */ public class YamlConfigurationExample { public static void main(final String[] args) throws SQLException, IOException { Loading sharding-jdbc-example/broadcast-table-example/broadcast-table-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/broadcast/table/raw/jdbc/config/ShardingDatabasesConfigurationPrecise.java→sharding-jdbc-example/broadcast-table-example/broadcast-table-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/broadcast/table/raw/jdbc/config/ShardingDatabasesConfiguration.java +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Properties; public class ShardingDatabasesConfigurationPrecise implements ExampleConfiguration { public class ShardingDatabasesConfiguration implements ExampleConfiguration { @Override public DataSource getDataSource() throws SQLException { Loading Loading
sharding-jdbc-example/broadcast-table-example/broadcast-table-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/broadcast/table/raw/jdbc/JavaConfigurationExample.java +2 −2 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ package org.apache.shardingsphere.example.broadcast.table.raw.jdbc; import org.apache.shardingsphere.example.broadcast.table.raw.jdbc.config.ShardingDatabasesConfigurationPrecise; import org.apache.shardingsphere.example.broadcast.table.raw.jdbc.config.ShardingDatabasesConfiguration; import org.apache.shardingsphere.example.common.jdbc.repository.CountryRepositroyImpl; import org.apache.shardingsphere.example.common.jdbc.service.CountryServiceImpl; import org.apache.shardingsphere.example.common.service.CommonService; Loading @@ -32,7 +32,7 @@ import java.sql.SQLException; public class JavaConfigurationExample { public static void main(final String[] args) throws SQLException { DataSource dataSource = new ShardingDatabasesConfigurationPrecise().getDataSource(); DataSource dataSource = new ShardingDatabasesConfiguration().getDataSource(); CommonService countryService = getCountryService(dataSource); countryService.initEnvironment(); countryService.processSuccess(); Loading
sharding-jdbc-example/broadcast-table-example/broadcast-table-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/broadcast/table/raw/jdbc/YamlConfigurationExample.java +0 −3 Original line number Diff line number Diff line Loading @@ -27,9 +27,6 @@ import java.io.File; import java.io.IOException; import java.sql.SQLException; /* * Please make sure master-slave data sync on MySQL is running correctly. Otherwise this example will query empty data from slave. */ public class YamlConfigurationExample { public static void main(final String[] args) throws SQLException, IOException { Loading
sharding-jdbc-example/broadcast-table-example/broadcast-table-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/broadcast/table/raw/jdbc/config/ShardingDatabasesConfigurationPrecise.java→sharding-jdbc-example/broadcast-table-example/broadcast-table-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/broadcast/table/raw/jdbc/config/ShardingDatabasesConfiguration.java +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Properties; public class ShardingDatabasesConfigurationPrecise implements ExampleConfiguration { public class ShardingDatabasesConfiguration implements ExampleConfiguration { @Override public DataSource getDataSource() throws SQLException { Loading