ngbatis icon indicating copy to clipboard operation
ngbatis copied to clipboard

查询返回结果,java怎么映射呢

Open zhangxs0110 opened this issue 2 years ago • 2 comments

image 我想取到 e 中 的 edgeType、vid、vid2。java有什么方便的方法映射吗

zhangxs0110 avatar Dec 29 '22 06:12 zhangxs0110

return的时候区分一下就好了,处理成正常的string或数字,就跟普通实体映射一样了,好像是有个type(e)的函数可以读取e的edgeType,具体可以看下nGQL的文档,剩下的用id(v)函数读取

CorvusYe avatar Dec 29 '22 07:12 CorvusYe

好的,感谢

zhangxs0110 avatar Dec 29 '22 09:12 zhangxs0110