You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fixed connection leak issue when an error occurs during execution.
48
+
- Fix the issue where the template fails to function properly when using `ng.include` across multiple lines.
49
+
50
+
# 2.0.1
51
+
52
+
## Bugfix
53
+
54
+
- fix ([#63](https://github.com/nebula-contrib/ngbatis/pull/63): automatically calculating stack and local variables in asm. via: [@moroyimk](https://github.com/moroyimk)
55
+
- fix: fix the issue of `Duration` type in custom xml
56
+
- revert: revert the change of 2.0.0-beta.1
57
+
> To be compatible with `${ ng.valueFmt( value ) }`, when value is null, it can still output a placeholder. You can use the following method:
58
+
>
59
+
> ```beetl
60
+
> ${ ng.valueFmt( value ) ! "null" }
61
+
> ```
62
+
>
63
+
- fix: fix the issue of field type is Byte, cannot be parsed to entity object.
- fix: `ng.valueFmt( value )` cannot output null as a placeholder when value is null.
108
+
109
+
# 2.0.0-beta
110
+
111
+
## Bugfix
112
+
113
+
- fix: [#329](https://github.com/nebula-contrib/ngbatis/issues/329) correct the return value type and clear the interface generic.[#335](https://github.com/nebula-contrib/ngbatis/pull/335)
- feat: Entity Direct Search. ([#319](https://github.com/nebula-contrib/ngbatis/pull/319), via: [@xYLiuuuuuu](https://github.com/n3A87))
119
+
- Entities can extend `GraphBaseVertex` or `GraphBaseEdge` to support direct search.
120
+
- GraphBaseVertex:
121
+
122
+
API | Usage instructions
123
+
--|--
124
+
queryIdsByProperties() | Query a collection of vertex ids for a particular Tag or attribute
125
+
queryVertexById() | Query a single vertex for a specific vertex Id
126
+
queryVertexByTag() | Query a collection of vertices for a specific Tag
127
+
queryVertexByProperties() | Query a collection of vertexes for a specific property
128
+
queryAllAdjacentVertex(Class<?>... edgeClass) | Query a collection of all neighboring vertexes of a particular vertex, specifying one or more edge types that connect the two vertexes
129
+
queryIncomingAdjacentVertex(Class<?>... edgeClass) | Query the set of adjacent vertexes in the direction of the incoming edge of a particular vertex, specifying one or more edge types that connect two vertexes
130
+
queryOutgoingAdjacentVertex(Class<?>... edgeClass) | Query the set of adjacent vertexes in the direction of the edge of a particular vertex, specifying one or more edge types that connect two vertexes
131
+
queryNeighborIdsWithHopById(int m, int n, Class<?>... edgeClass) | Query a collection of vertex ids within a specified number of hops for a particular vertex, specifying one or more edge types that connect two vertexes
132
+
queryConnectedEdgesById(Direction direction) | Query the set of all edges associated with a particular vertex, specifying the direction and type of the edge
133
+
queryPathFromVertex(Direction direction) | Query the collection of all paths associated with a particular vertex, specifying the direction of the edge
134
+
queryFixedLengthPathFromVertex(Integer maxHop, Direction direction, Class<?>... edgeClass) | Query a set of fixed-length paths from a specific vertex, specifying the maximum number of steps, the direction of the edge, and the type of the edge
135
+
queryVariableLengthPathFromVertex(Integer minHop, Integer maxHop, Direction direction, Class<?>... edgeClass) | Query a set of variable-length paths from a specific vertex, specifying the minimum number of steps, the maximum number of steps, the direction of the edge, and the type of the edge
136
+
queryShortestPathFromSrcAndDst(Integer maxHop, Direction direction, T v2) | Query any shortest path from a specific vertex, specifying the number of steps, the direction of the edge, and the end vertex entity
137
+
queryAllShortestPathsFromSrcAndDst(Integer maxHop, Direction direction, T v2) | Query the set of all shortest paths from this vertex, specifying the number of steps, the direction of the edge, and the end vertex entity
138
+
queryVertexCountByTag() | Query the number of vertexes for a specific Tag
139
+
140
+
- GraphBaseEdge:
141
+
142
+
API | Usage instructions
143
+
--|--
144
+
queryEdgeByType(Direction direction) | Query a set of edges of a specific type and direction
145
+
queryEdgeWithSrcAndDstByProperties(T srcVertex, Direction direction, T dstVertex) | Query a set of edges for a particular property
146
+
queryEdgePropertiesBySrcAndDstId() | Query a set of edges for a specific always vertex id
147
+
queryEdgeCountByType() | Query the number of edges for a specific Type
148
+
149
+
- feat: fix [#324](https://github.com/nebulagraph/ngbatis/issues/324) add insertForce(v) insertSelectiveForce(v) into NebulaDaoBasic.[#335](https://github.com/nebula-contrib/ngbatis/pull/335)
150
+
- feat: `@Space` annotation and space config in mapper xml supports dynamic configuration. ([#318](https://github.com/nebula-contrib/ngbatis/pull/318), via: [@charle004](https://github.com/charle004))
151
+
> `@Space` 注解的 name 属性值和 xml 文件中 Mapper 标签指定的 Space 可通过 spring 配置文件自定义配置。
152
+
- feat: support multiple mapper-locations in yml. ([#318](https://github.com/nebula-contrib/ngbatis/pull/318), via: [@charle004](https://github.com/charle004))
153
+
- feat: SessionPool support `spaceFromParam`.
30
154
31
155
# 1.3.0
32
156
@@ -87,9 +211,9 @@ This source code is licensed under Apache 2.0 License.
87
211
person:
88
212
space: PERSON_SPACE
89
213
```
90
-
214
+
91
215
```java
92
-
@Space(name = "${nebula.space}")
216
+
@Space(name = "${app.person.space}")
93
217
@Table(name = "person")
94
218
public class Person {
95
219
@Id
@@ -114,6 +238,14 @@ This source code is licensed under Apache 2.0 License.
0 commit comments