Tinkerpop Frames writing to database - newbie

China☆狼群 提交于 2019-12-05 21:26:04

You can't create a Person except by way of proxy. In other words, you can't use a concrete implementation of that interface, it has to be constructed dynamically by the FramesGraph.

You have the code to create a Person here:

FramedGraph framedGraph = factory.create(graph); //Frame the graph.

Person person = framedGraph.getVertex(1, Person.class);
person.getName(); // equals "marko" 

Without that, the created Person implementation will not know anything about the underlying and injected Graph instance given to factory.create()

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!