Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compability with gremlin #1590

Closed
deluxxx opened this issue Aug 2, 2013 · 1 comment
Closed

Compability with gremlin #1590

deluxxx opened this issue Aug 2, 2013 · 1 comment
Assignees
Labels

Comments

@deluxxx
Copy link

deluxxx commented Aug 2, 2013

I use package orientdb-graphed-1.5.0.

In scripts I create CLASS to database

and I use java to insert data like that :
ODocument vUser1 = db.createVertex("User").field("name", "user1").field("uuid", UUID.fromString("017e6162-3b6f-4ae1-a171-2470b63dff00").toString());
db.save(vUser1);
ODocument vUser2 = db.createVertex("User").field("name", "user2").field("uuid", UUID.fromString("027e6162-3b6f-4ae1-a171-2470b63dff00").toString());
db.save(vUser2);
db.save(db.createEdge(vUser1, vUser2, "Friend").field("created", new Date()));
db.save(db.createEdge(vUser2, vUser1, "Friend").field("created", new Date()));

And in gremlin console I try command but I haven't effect. Only when I use g.E.outV or g.E.outIn I have list records

screenshot from 2013-08-02 15 00 25
screenshot from 2013-08-02 15 04 19
screenshot from 2013-08-02 15 06 16
screenshot from 2013-08-02 15 30 33

EDIT :
In CONSOLE I do that :
gremlin> v1 = g.addVertex();
==>v[#9:-3]
gremlin> v2 = g.addVertex();
==>v[#9:-4]
gremlin> e = g.addEdge(v1,v2, 'friend');

gremlin> g.V.out
==>v[#9:-4]

That it's working.
Why gremlin not show me result when I run g.V.out for object made by JAVA.

@lvca
Copy link
Member

lvca commented Aug 2, 2013

To populate the db you use the Deprecated Native Graph API, so you've to set the compatibility mode:

alter database custom useLightweightEdges=false
alter database custom useClassForEdgeLabel=false
alter database custom useClassForVertexLabel=false
alter database custom useVertexFieldsForEdgeLabels=false

@lvca lvca closed this as completed Aug 2, 2013
@ghost ghost assigned lvca Aug 2, 2013
@lvca lvca modified the milestone: 1.6 Aug 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants