nebula-contrib / ngbatis

NGBATIS is a database ORM framework base NebulaGraph + spring-boot, which takes advantage of the mybatis’ fashion development, including some de-factor operations in single table and vertex-edge, like mybatis-plus. NGBATIS 是一款针对 NebulaGraph + Springboot 的数据库 ORM 框架。借鉴于 MyBatis 的使用习惯进行开发。https://graph-cn.github.io/ngbatis-docs/
https://nebula-contrib.github.io/ngbatis/
Apache License 2.0
132 stars 42 forks source link

修改遇到点或边找不到问题 #146

Closed zhangxk-ocean closed 6 months ago

zhangxk-ocean commented 1 year ago

修改点或边时,因为id生成器的原因,导致传入的id参数被新生成的id给覆盖,应该怎么解决呢

CorvusYe commented 1 year ago

https://github.com/nebula-contrib/ngbatis/blob/master/src/main/java/org/nebula/contrib/ngbatis/binding/beetl/functions/IdFn.java#L58

可以在这个地方断点看下吗,这是唯一一处通过主键生成该主键值的地方

zhangxk-ocean commented 1 year ago

看了下好像是接到的参数都是空,导致新生成了id,我排查一下原因再看看

zhangxk-ocean commented 1 year ago

这个问题解决了,接参有问题,谢谢