Skip to content

Commit

Permalink
Make jooq as default translator (apache#17659)
Browse files Browse the repository at this point in the history
* Make jooq as default translator

* Add spring-tx and spring-jdbc dependencies

Co-authored-by: zhangliang <[email protected]>
  • Loading branch information
iisheng and terrymanu authored May 15, 2022
1 parent 3235922 commit 7e62c95
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,18 @@
<version>${springframework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${springframework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${springframework.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions shardingsphere-infra/shardingsphere-infra-rewrite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@
<artifactId>shardingsphere-sql-translator-native-provider</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-sql-translator-jooq-provider</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,9 @@ public String translate(final String sql, final SQLStatement statement, final Da
public String getType() {
return "JOOQ";
}

@Override
public boolean isDefault() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,4 @@ public String translate(final String sql, final SQLStatement statement, final Da
public String getType() {
return "NATIVE";
}

@Override
public boolean isDefault() {
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${springframework.version}</version>
<scope>test</scope>
</dependency>

Expand Down

0 comments on commit 7e62c95

Please sign in to comment.