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

FIND PATH got NullPointerException. #197

Open A-pppp opened 1 year ago

A-pppp commented 1 year ago

image image

CorvusYe commented 1 year ago

可以提供下脱敏的报错日志吗?

A-pppp commented 1 year ago

可以提供下脱敏的报错日志吗?

image

image 测试了一下像是传参的问题,去掉参数就不会报错

CorvusYe commented 1 year ago

int n 换成 Integer n 试试看,接口声明涉及基本类型推荐使用对应的包装类

A-pppp commented 1 year ago

int n 换成 Integer n 试试看,接口声明涉及基本类型推荐使用对应的包装类

换Integer可行了,但是会有报错在xml文件里vid不让用$传参,我想给vid传参该如何做 image

CorvusYe commented 1 year ago

$src 可以理解成 JDBC 的 preparedStatement,参数由数据库替换 对于数据库不支持参数化的地方,可以使用 ${ src },或 ${ ng.valueFmt( src ) } (后者可以不需要考虑是字符串还是数字)

A-pppp commented 1 year ago

解决了,十分感谢!