Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: complete the schema used in the test cases. #296

Merged
merged 4 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ This source code is licensed under Apache 2.0 License.

- [x] Springboot 3.x support. (lastest-jdk17)

# NEXT

## Bugfix

## Feature

# 1.2.2

## Bugfix
Expand Down
6 changes: 3 additions & 3 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This source code is licensed under Apache 2.0 License.
NgBatis | nebula-java | JDK | Springboot | Beetl
---|-------------|---|------------|---
1.2.2 | 3.6.0 | 8 | 2.7.0 | 3.15.10.RELEASE
1.2.1-jdk17 | 3.6.0 | 17 | 3.0.7 | 3.15.10.RELEASE
1.2.2-jdk17 | 3.6.0 | 17 | 3.0.7 | 3.15.10.RELEASE
1.2.1 | 3.6.0 | 8 | 2.7.0 | 3.15.10.RELEASE
1.2.0-jdk17 | 3.6.0 | 17 | 3.0.7 | 3.15.10.RELEASE
1.2.0 | 3.6.0 | 8 | 2.7.0 | 3.15.10.RELEASE
Expand Down Expand Up @@ -62,14 +62,14 @@ This source code is licensed under Apache 2.0 License.
<dependency>
<groupId>org.nebula-contrib</groupId>
<artifactId>ngbatis</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</dependency>
```

- Gradle

```groovy
implementation 'org.nebula-contrib:ngbatis:1.2.1'
implementation 'org.nebula-contrib:ngbatis:1.2.2'
```

### 参考 [【ngbatis-demo】](./ngbatis-demo),与springboot无缝集成。在该项目的 test 中还有api的样例。在开发过程中每增加一个特性也都会同步更新ngbatis-demo的用例
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ See [EXECUTION-PROCESS.md](./EXECUTION-PROCESS.md)
NgBatis | nebula-java | JDK | Springboot | Beetl
---|-------------|---|------------|---
1.2.2 | 3.6.0 | 8 | 2.7.0 | 3.15.10.RELEASE
1.2.1-jdk17 | 3.6.0 | 17 | 3.0.7 | 3.15.10.RELEASE
1.2.2-jdk17 | 3.6.0 | 17 | 3.0.7 | 3.15.10.RELEASE
1.2.1 | 3.6.0 | 8 | 2.7.0 | 3.15.10.RELEASE
1.2.0-jdk17 | 3.6.0 | 17 | 3.0.7 | 3.15.10.RELEASE
1.2.0 | 3.6.0 | 8 | 2.7.0 | 3.15.10.RELEASE
Expand Down Expand Up @@ -64,14 +64,14 @@ See [EXECUTION-PROCESS.md](./EXECUTION-PROCESS.md)
<dependency>
<groupId>org.nebula-contrib</groupId>
<artifactId>ngbatis</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</dependency>
```

- Gradle

```groovy
implementation 'org.nebula-contrib:ngbatis:1.2.1'
implementation 'org.nebula-contrib:ngbatis:1.2.2'
```

- Referring to [ngbatis-demo](./ngbatis-demo), which was smoothly integrated with spring-boot. The API examples could be found under the test of it for all features of ngbatis.
Expand Down
2 changes: 1 addition & 1 deletion ngbatis-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<dependency>
<groupId>org.nebula-contrib</groupId>
<artifactId>ngbatis</artifactId>
<version>1.2.2</version>
<version>1.2.3-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
8 changes: 7 additions & 1 deletion ngbatis-demo/src/main/resources/testgraph.ngql
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ create edge if not exists like(likeness double);
create tag index person_index_1 on person(age,birthday);

CREATE tag `column_alias` (`first_name` string NULL , `last_name` string NULL );
CREATE TAG INDEX `i_column_alias_first_name` ON `column_alias`(`first_name`(50));
CREATE TAG INDEX `i_column_alias_first_name` ON `column_alias`(`first_name`(50));
CREATE tag `time_test` (`t_date` date NULL , `t_datetime` datetime NULL , `t_time` time NULL , `t_timestamp` timestamp NULL , `t_duration` duration NULL ) ;
CREATE tag `no_properties_vertex` () COMMENT = "无属性标签";

create space if not exists `cmqa` (vid_type = INT64);
:sleep 20
CREATE tag `paragraph` (`name` string NULL );
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<name>ngbatis</name>
<groupId>org.nebula-contrib</groupId>
<artifactId>ngbatis</artifactId>
<version>1.2.2</version>
<version>1.2.3-SNAPSHOT</version>

<description>
NgBatis is a database ORM framework base NebulaGraph + spring-boot,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void init() {
put(Object.class, (Setter<Object>) (obj) -> {
Map<String, Object> pojoFields = new HashMap<>();
Class<?> paramType = obj.getClass();
Field[] allFields = getAllColumnFields(paramType);
Field[] allFields = getAllColumnFields(paramType, true);
for (Field declaredField : allFields) {
Object nebulaValue = toNebulaValueType(
ReflectUtil.getValue(obj, declaredField),
Expand Down
Loading