From c90bcf2051c4fbdeffe93d0e716a928bcd0a4216 Mon Sep 17 00:00:00 2001
From: CorvusYe
Date: Wed, 15 Nov 2023 03:10:20 +0800
Subject: [PATCH 1/4] fix: disable automatic space switching when the current
space is null
---
.../ye/weicheng/ngbatis/demo/repository/DropSpaceDao.java | 6 ++++--
ngbatis-demo/src/main/resources/mapper/DropSpaceDao.xml | 8 ++++++--
.../ngbatis/demo/repository/DropSpaceDaoTest.java | 6 +++---
.../org/nebula/contrib/ngbatis/proxy/MapperProxy.java | 2 +-
4 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/ngbatis-demo/src/main/java/ye/weicheng/ngbatis/demo/repository/DropSpaceDao.java b/ngbatis-demo/src/main/java/ye/weicheng/ngbatis/demo/repository/DropSpaceDao.java
index b03a4da..adc8329 100644
--- a/ngbatis-demo/src/main/java/ye/weicheng/ngbatis/demo/repository/DropSpaceDao.java
+++ b/ngbatis-demo/src/main/java/ye/weicheng/ngbatis/demo/repository/DropSpaceDao.java
@@ -14,9 +14,11 @@
*/
public interface DropSpaceDao {
- void createSpace(String name);
+ void useTestSpace();
- void dropSpace(String name);
+ void createSpace();
+
+ void dropSpace();
List showTags();
diff --git a/ngbatis-demo/src/main/resources/mapper/DropSpaceDao.xml b/ngbatis-demo/src/main/resources/mapper/DropSpaceDao.xml
index d503396..b1f068f 100644
--- a/ngbatis-demo/src/main/resources/mapper/DropSpaceDao.xml
+++ b/ngbatis-demo/src/main/resources/mapper/DropSpaceDao.xml
@@ -6,11 +6,15 @@
- drop space ${ p0 };
+ drop space test_drop;
+
+
- [Ngbatis Docs](https://nebula-contrib.github.io/ngbatis/)
-- [Ngbatis 文档](https://corvusye.github.io/ngbatis-docs/)
+- [Ngbatis 文档](https://graph-cn.github.io/ngbatis-docs/)
## What is NGBATIS
diff --git a/ngbatis-demo/pom.xml b/ngbatis-demo/pom.xml
index 1cbe2a6..631b797 100644
--- a/ngbatis-demo/pom.xml
+++ b/ngbatis-demo/pom.xml
@@ -50,7 +50,7 @@
org.nebula-contrib
ngbatis
- 1.2.0-SNAPSHOT
+ 1.2.0-beta
diff --git a/pom.xml b/pom.xml
index ea97f61..d237a2c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,7 +13,7 @@
ngbatis
org.nebula-contrib
ngbatis
- 1.2.0-SNAPSHOT
+ 1.2.0-beta
diff --git a/src/main/java/org/nebula/contrib/ngbatis/proxy/NebulaDaoBasic.java b/src/main/java/org/nebula/contrib/ngbatis/proxy/NebulaDaoBasic.java
index 571c96c..993b74b 100644
--- a/src/main/java/org/nebula/contrib/ngbatis/proxy/NebulaDaoBasic.java
+++ b/src/main/java/org/nebula/contrib/ngbatis/proxy/NebulaDaoBasic.java
@@ -291,7 +291,7 @@ default int deleteLogicById(I id) {
* @param id 表记录主键
* @return 是否执行成功,成功 1 ,失败 0
*/
- default int deleteWithEdgeById(I id) {
+ default Integer deleteWithEdgeById(I id) {
MethodModel methodModel = getMethodModel();
methodModel.setReturnType(ResultSet.class);
methodModel.setResultType(ResultSet.class);
@@ -306,7 +306,7 @@ default int deleteWithEdgeById(I id) {
* @param id 表记录主键
* @return 是否删除成功,成功 1,失败 0
*/
- default int deleteById(I id) {
+ default Integer deleteById(I id) {
MethodModel methodModel = getMethodModel();
methodModel.setReturnType(ResultSet.class);
methodModel.setResultType(ResultSet.class);
@@ -322,7 +322,7 @@ default int deleteById(I id) {
* @param ids 表记录主键列表
* @return 是否删除成功,成功 1,失败 0
*/
- default int deleteByIdBatch(Collection ids) {
+ default Integer deleteByIdBatch(Collection ids) {
MethodModel methodModel = getMethodModel();
methodModel.setReturnType(ResultSet.class);
methodModel.setResultType(ResultSet.class);
From 9fd0589e26c61532aafe7ecb2356fd4998156708 Mon Sep 17 00:00:00 2001
From: CorvusYe
Date: Wed, 15 Nov 2023 04:19:01 +0800
Subject: [PATCH 3/4] v1.2.0-beta
---
CHANGELOG.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 21c4c04..63c2b06 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,7 +12,7 @@ This source code is licensed under Apache 2.0 License.
- [ ] Expand the function of NebulaDaoBasic
- [ ] Add batch interface:
- [ ] insertTripletBatch
- - [ ] insertEdgeBatch
+ - [x] insertEdgeBatch
- [ ] ...
- [ ] Schema support:
- [ ] show metas
From 4ecec684dd3eef738ba4dcab9d20d24f461f6ae6 Mon Sep 17 00:00:00 2001
From: CorvusYe
Date: Wed, 15 Nov 2023 04:28:44 +0800
Subject: [PATCH 4/4] v1.2.0-beta
---
CHANGELOG.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 63c2b06..949bc1a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -37,7 +37,7 @@ This source code is licensed under Apache 2.0 License.
## Feature
- feat: support `` include query pieces. ([#212](https://github.com/nebula-contrib/ngbatis/pull/212), via [dieyi](https://github.com/1244453393))
-- feat: extending `NgPath`, when 'with prop' is used in nGQL, edge attributes can be obtained from NgPath. ([#212](https://github.com/nebula-contrib/ngbatis/pull/212), via [dieyi](https://github.com/1244453393))
+- feat: extending `NgPath`, when 'with prop' is used in nGQL, edge attributes can be obtained from NgPath. ([#228](https://github.com/nebula-contrib/ngbatis/pull/228), via [dieyi](https://github.com/1244453393))
- feat: expanding the `insertEdgeBatch` interface in `NebulaDaoBasic`. ([#244](https://github.com/nebula-contrib/ngbatis/pull/244), via [Sunhb](https://github.com/shbone))
- feat: expanding the `deleteByIdBatch` interface in `NebulaDaoBasic`. ([#247](https://github.com/nebula-contrib/ngbatis/pull/244), via [Sunhb](https://github.com/shbone))