GithubHelp home page GithubHelp logo

Comments (7)

laura-ding avatar laura-ding commented on June 11, 2024

现在查询出来的结果还需要自己手动对应到实体中,太过麻烦

没明白你的意思,什么叫做手动对应到实体,你可以举例说明吗?查询结果的类型肯定是要用户自己去判断,然后拿相应的类型,然后每种类型是已经有相应的包装的。

from nebula-java.

xupengjun avatar xupengjun commented on June 11, 2024

from nebula-java.

laura-ding avatar laura-ding commented on June 11, 2024

现在查询结果就已经是相应的实体了,你可以看
https://github.com/vesoft-inc/nebula-java/blob/master/client/src/test/java/com/vesoft/nebula/client/graph/data/TestDataFromServer.java

from nebula-java.

xupengjun avatar xupengjun commented on June 11, 2024

from nebula-java.

laura-ding avatar laura-ding commented on June 11, 2024

麻烦你说下怎么个繁琐法可以吗?

from nebula-java.

xupengjun avatar xupengjun commented on June 11, 2024

from nebula-java.

laura-ding avatar laura-ding commented on June 11, 2024

现在使用,我们需要自己写一个工具类,来映射查询出的结果,和自己定义的实体对象赋值,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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.