Comments (7)
现在查询出来的结果还需要自己手动对应到实体中,太过麻烦
没明白你的意思,什么叫做手动对应到实体,你可以举例说明吗?查询结果的类型肯定是要用户自己去判断,然后拿相应的类型,然后每种类型是已经有相应的包装的。
from nebula-java.
from nebula-java.
现在查询结果就已经是相应的实体了,你可以看
下https://github.com/vesoft-inc/nebula-java/blob/master/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java
from nebula-java.
from nebula-java.
麻烦你说下怎么个繁琐法可以吗?
from nebula-java.
from nebula-java.
现在使用,我们需要自己写一个工具类,来映射查询出的结果,和自己定义的实体对象赋值,mybatis这种不就是写sql语句,然后自己将查询出的结果,自动根据属性对应到返回类的属性上嘛。或者hibernate那种,mybatisplus这样的也挺好用的啊。说明了,目前就相当于一个jdbc操作,拿到每个ResultSet result = session.execute("FETCH PROP ON person 'Bob';");然后在挨个手动遍历封装返回对象。
…
------------------ 原始邮件 ------------------ 发件人: "vesoft-inc/nebula-java" @.>; 发送时间: 2021年3月22日(星期一) 下午3:53 @.>; @.@.>; 主题: Re: [vesoft-inc/nebula-java] 可以提供查询对象结果和对象实体对应的工具方法嘛 (#266) 麻烦你说下怎么个繁琐法可以吗? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
我们会先提供一个用 python 实现的工具库,假如用户反响好,再给 java 也增加一个。
from nebula-java.
Related Issues (20)
- Support scala with zio HOT 4
- SessionPool在循环查询中阻塞 HOT 2
- Allow users to setHeader when using HTTP/2
- SessionPool 连接 3 节点集群时,一个节点宕机后,客户端无法连接,请问怎么设置集群可用度? HOT 3
- typo in examples? HOT 1
- The effective time of space is not friendly to testing HOT 2
- No worry
- Verify java client with custom header HOT 4
- the ordering of params was problematic, and it wasn't passing params correctly. HOT 2
- Does NebulaGraph support image storage? HOT 2
- [ent 3.6 zone]when upload to hdfs report error HOT 2
- 客户端连接集群问题 HOT 4
- When will storageclient provide the 'socketTimeout' parameter? HOT 1
- allow to config the charset for query statement
- support to config the version for graph client
- support to config the version for meta client
- support to auth for storage client
- nebula-java session会话 HOT 2
- Http2 example failed HOT 4
- support tls single authentication
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nebula-java.