Loading example-common/repository-jdbc/src/main/java/org/apache/shardingsphere/example/common/jdbc/repository/UserRepositoryImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,8 @@ public final class UserRepositoryImpl implements UserRepository { @Override public void createTableIfNotExists() { String sql = "CREATE TABLE IF NOT EXISTS t_user (user_id INT NOT NULL AUTO_INCREMENT, user_name VARCHAR(200), user_name_plain VARCHAR(200), pwd VARCHAR(200), assisted_query_pwd VARCHAR(200), PRIMARY KEY (user_id))"; String sql = "CREATE TABLE IF NOT EXISTS t_user " + "(user_id INT NOT NULL AUTO_INCREMENT, user_name VARCHAR(200), user_name_plain VARCHAR(200), pwd VARCHAR(200), assisted_query_pwd VARCHAR(200), PRIMARY KEY (user_id))"; try (Connection connection = dataSource.getConnection(); Statement statement = connection.createStatement()) { statement.executeUpdate(sql); Loading example-common/repository-jpa/src/main/java/org/apache/shardingsphere/example/common/jpa/entity/CountryEntity.java +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package org.apache.shardingsphere.example.common.jpa.entity; import org.apache.shardingsphere.example.common.entity.Country; import org.springframework.context.annotation.Primary; import javax.persistence.Column; import javax.persistence.Entity; Loading example-common/repository-mybatis/src/main/java/org/apache/shardingsphere/example/common/mybatis/service/SpringCountryServiceImpl.java +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package org.apache.shardingsphere.example.common.mybatis.service; import org.apache.shardingsphere.example.common.entity.Country; import org.apache.shardingsphere.example.common.mybatis.repository.MybatisCountryRepository; import org.apache.shardingsphere.example.common.repository.CountryRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; Loading sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/JavaConfigurationExample.java +2 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,8 @@ public class JavaConfigurationExample { ExampleConfiguration configuration; switch (shardingType) { case SHARDING_DATABASES_AND_TABLES: configuration = loadConfigFromRegCenter ? new CloudShardingDatabasesAndTablesConfiguration(registryCenterConfig) : new LocalShardingDatabasesAndTablesConfiguration(registryCenterConfig); configuration = loadConfigFromRegCenter ? new CloudShardingDatabasesAndTablesConfiguration(registryCenterConfig) : new LocalShardingDatabasesAndTablesConfiguration(registryCenterConfig); break; case MASTER_SLAVE: configuration = loadConfigFromRegCenter ? new CloudMasterSlaveConfiguration(registryCenterConfig) : new LocalMasterSlaveConfiguration(registryCenterConfig); Loading sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudEncryptConfiguration.java +6 −6 Original line number Diff line number Diff line /* * Copyright 2016-2018 shardingsphere.io. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Loading @@ -12,7 +13,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * </p> */ package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.cloud; Loading Loading
example-common/repository-jdbc/src/main/java/org/apache/shardingsphere/example/common/jdbc/repository/UserRepositoryImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,8 @@ public final class UserRepositoryImpl implements UserRepository { @Override public void createTableIfNotExists() { String sql = "CREATE TABLE IF NOT EXISTS t_user (user_id INT NOT NULL AUTO_INCREMENT, user_name VARCHAR(200), user_name_plain VARCHAR(200), pwd VARCHAR(200), assisted_query_pwd VARCHAR(200), PRIMARY KEY (user_id))"; String sql = "CREATE TABLE IF NOT EXISTS t_user " + "(user_id INT NOT NULL AUTO_INCREMENT, user_name VARCHAR(200), user_name_plain VARCHAR(200), pwd VARCHAR(200), assisted_query_pwd VARCHAR(200), PRIMARY KEY (user_id))"; try (Connection connection = dataSource.getConnection(); Statement statement = connection.createStatement()) { statement.executeUpdate(sql); Loading
example-common/repository-jpa/src/main/java/org/apache/shardingsphere/example/common/jpa/entity/CountryEntity.java +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package org.apache.shardingsphere.example.common.jpa.entity; import org.apache.shardingsphere.example.common.entity.Country; import org.springframework.context.annotation.Primary; import javax.persistence.Column; import javax.persistence.Entity; Loading
example-common/repository-mybatis/src/main/java/org/apache/shardingsphere/example/common/mybatis/service/SpringCountryServiceImpl.java +0 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,6 @@ package org.apache.shardingsphere.example.common.mybatis.service; import org.apache.shardingsphere.example.common.entity.Country; import org.apache.shardingsphere.example.common.mybatis.repository.MybatisCountryRepository; import org.apache.shardingsphere.example.common.repository.CountryRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; Loading
sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/JavaConfigurationExample.java +2 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,8 @@ public class JavaConfigurationExample { ExampleConfiguration configuration; switch (shardingType) { case SHARDING_DATABASES_AND_TABLES: configuration = loadConfigFromRegCenter ? new CloudShardingDatabasesAndTablesConfiguration(registryCenterConfig) : new LocalShardingDatabasesAndTablesConfiguration(registryCenterConfig); configuration = loadConfigFromRegCenter ? new CloudShardingDatabasesAndTablesConfiguration(registryCenterConfig) : new LocalShardingDatabasesAndTablesConfiguration(registryCenterConfig); break; case MASTER_SLAVE: configuration = loadConfigFromRegCenter ? new CloudMasterSlaveConfiguration(registryCenterConfig) : new LocalMasterSlaveConfiguration(registryCenterConfig); Loading
sharding-jdbc-example/orchestration-example/orchestration-raw-jdbc-example/src/main/java/org/apache/shardingsphere/example/orchestration/raw/jdbc/config/cloud/CloudEncryptConfiguration.java +6 −6 Original line number Diff line number Diff line /* * Copyright 2016-2018 shardingsphere.io. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Loading @@ -12,7 +13,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * </p> */ package org.apache.shardingsphere.example.orchestration.raw.jdbc.config.cloud; Loading