Loading example-common/repository-mybatis/src/main/java/org/apache/shardingsphere/example/common/mybatis/service/SpringUserServiceImpl.java +0 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ package org.apache.shardingsphere.example.common.mybatis.service; import org.apache.shardingsphere.example.common.entity.User; import org.apache.shardingsphere.example.common.repository.UserRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; import java.util.ArrayList; Loading @@ -44,7 +43,6 @@ public class SpringUserServiceImpl implements UserService { } @Override @Transactional public void processSuccess() { System.out.println("-------------- Process Success Begin ---------------"); List<Long> userIds = insertData(); Loading sharding-jdbc-example/encrypt-example/encrypt-raw-jdbc-example/pom.xml +12 −0 Original line number Diff line number Diff line Loading @@ -26,4 +26,16 @@ <version>4.0.0-RC1-SNAPSHOT</version> </parent> <artifactId>encrypt-raw-jdbc-example</artifactId> <dependencies> <dependency> <groupId>org.apache.shardingsphere.example</groupId> <artifactId>repository-jdbc</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-core</artifactId> </dependency> </dependencies> </project> sharding-jdbc-example/encrypt-example/encrypt-spring-boot-example/pom.xml +8 −0 Original line number Diff line number Diff line Loading @@ -26,4 +26,12 @@ <version>4.0.0-RC1-SNAPSHOT</version> </parent> <artifactId>encrypt-spring-boot-example</artifactId> <dependencies> <dependency> <groupId>org.apache.shardingsphere.example</groupId> <artifactId>repository-jpa</artifactId> <version>${project.version}</version> </dependency> </dependencies> </project> sharding-jdbc-example/encrypt-example/encrypt-spring-namespace-example/pom.xml +26 −0 Original line number Diff line number Diff line Loading @@ -26,4 +26,30 @@ <version>4.0.0-RC1-SNAPSHOT</version> </parent> <artifactId>encrypt-spring-namespace-example</artifactId> <dependencies> <dependency> <groupId>org.apache.shardingsphere.example</groupId> <artifactId>repository-mybatis</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-spring-namespace</artifactId> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> </dependency> </dependencies> </project> Loading
example-common/repository-mybatis/src/main/java/org/apache/shardingsphere/example/common/mybatis/service/SpringUserServiceImpl.java +0 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ package org.apache.shardingsphere.example.common.mybatis.service; import org.apache.shardingsphere.example.common.entity.User; import org.apache.shardingsphere.example.common.repository.UserRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; import java.util.ArrayList; Loading @@ -44,7 +43,6 @@ public class SpringUserServiceImpl implements UserService { } @Override @Transactional public void processSuccess() { System.out.println("-------------- Process Success Begin ---------------"); List<Long> userIds = insertData(); Loading
sharding-jdbc-example/encrypt-example/encrypt-raw-jdbc-example/pom.xml +12 −0 Original line number Diff line number Diff line Loading @@ -26,4 +26,16 @@ <version>4.0.0-RC1-SNAPSHOT</version> </parent> <artifactId>encrypt-raw-jdbc-example</artifactId> <dependencies> <dependency> <groupId>org.apache.shardingsphere.example</groupId> <artifactId>repository-jdbc</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-core</artifactId> </dependency> </dependencies> </project>
sharding-jdbc-example/encrypt-example/encrypt-spring-boot-example/pom.xml +8 −0 Original line number Diff line number Diff line Loading @@ -26,4 +26,12 @@ <version>4.0.0-RC1-SNAPSHOT</version> </parent> <artifactId>encrypt-spring-boot-example</artifactId> <dependencies> <dependency> <groupId>org.apache.shardingsphere.example</groupId> <artifactId>repository-jpa</artifactId> <version>${project.version}</version> </dependency> </dependencies> </project>
sharding-jdbc-example/encrypt-example/encrypt-spring-namespace-example/pom.xml +26 −0 Original line number Diff line number Diff line Loading @@ -26,4 +26,30 @@ <version>4.0.0-RC1-SNAPSHOT</version> </parent> <artifactId>encrypt-spring-namespace-example</artifactId> <dependencies> <dependency> <groupId>org.apache.shardingsphere.example</groupId> <artifactId>repository-mybatis</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-spring-namespace</artifactId> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> </dependency> </dependencies> </project>