diff --git a/README.md b/README.md
index fee8ece..811689f 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@
fluent-sql-core
group.flyfish.framework
- 1.0-SNAPSHOT
+ 0.0.1
```
diff --git a/fluent-sql-core/pom.xml b/fluent-sql-core/pom.xml
index 5e2d442..7d7dfb2 100644
--- a/fluent-sql-core/pom.xml
+++ b/fluent-sql-core/pom.xml
@@ -5,7 +5,7 @@
fluent-sql
group.flyfish.framework
- 1.0-SNAPSHOT
+ 0.0.1
4.0.0
@@ -23,7 +23,7 @@
org.springframework
- spring-jdbc
+ spring-beans
javax.persistence
diff --git a/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQL.java b/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQL.java
index f9afea0..6b3a95c 100644
--- a/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQL.java
+++ b/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQL.java
@@ -2,9 +2,9 @@ package group.flyfish.fluent.chain;
import group.flyfish.fluent.chain.common.PreSqlChain;
import group.flyfish.fluent.chain.select.SelectComposite;
+import group.flyfish.fluent.operations.FluentSQLOperations;
import group.flyfish.fluent.update.Update;
import group.flyfish.fluent.utils.sql.SFunction;
-import org.springframework.jdbc.core.JdbcOperations;
import static group.flyfish.fluent.utils.sql.SqlNameUtils.cast;
@@ -54,11 +54,11 @@ public interface SQL {
}
/**
- * 绑定数据源上下文,基于jdbc template
+ * 绑定数据源上下文,可自由切换实现
*
* @param operations jdbc操作
*/
- static void bind(JdbcOperations operations) {
+ static void bind(FluentSQLOperations operations) {
SQLImpl.bind(operations);
}
}
diff --git a/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQLImpl.java b/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQLImpl.java
index bb3ad7e..207f346 100644
--- a/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQLImpl.java
+++ b/fluent-sql-core/src/main/java/group/flyfish/fluent/chain/SQLImpl.java
@@ -6,7 +6,8 @@ import group.flyfish.fluent.chain.common.PreSqlChain;
import group.flyfish.fluent.chain.select.AfterOrderSqlChain;
import group.flyfish.fluent.chain.select.AfterWhereSqlChain;
import group.flyfish.fluent.chain.update.AfterSetSqlChain;
-import group.flyfish.fluent.mapping.SQLMappedRowMapper;
+import group.flyfish.fluent.entity.SQLEntity;
+import group.flyfish.fluent.operations.FluentSQLOperations;
import group.flyfish.fluent.query.JoinCandidate;
import group.flyfish.fluent.query.Parameterized;
import group.flyfish.fluent.query.Query;
@@ -18,8 +19,6 @@ import group.flyfish.fluent.utils.sql.ConcatSegment;
import group.flyfish.fluent.utils.sql.EntityNameUtils;
import group.flyfish.fluent.utils.sql.SFunction;
import group.flyfish.fluent.utils.sql.SqlNameUtils;
-import org.springframework.dao.EmptyResultDataAccessException;
-import org.springframework.jdbc.core.JdbcOperations;
import org.springframework.util.Assert;
import java.util.ArrayList;
@@ -35,7 +34,7 @@ import java.util.stream.Collectors;
final class SQLImpl extends ConcatSegment implements SQLOperations, PreSqlChain, HandleSqlChain, AfterJoinSqlChain, AfterSetSqlChain {
// 共享的操作
- private static JdbcOperations SHARED_OPERATIONS;
+ private static FluentSQLOperations SHARED_OPERATIONS;
// 参数map,有序
private final List