Skip to content

Possible wrong comparsion method inside getEdgeDefinition method #22

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

Closed
eugene-kamenev opened this issue Jul 27, 2015 · 9 comments
Closed
Labels

Comments

@eugene-kamenev
Copy link

Just found that EdgeDefinitionsEntity.getEdgeDefinition(String collectionName) always returns null for me.
I think this is because of == string compare inside getEdgeDefinition method, it should be .equals there.
And also can you please help, how can I update edgeDefinition that already exists.

@fceller fceller added the bug label Jul 27, 2015
@fceller
Copy link
Collaborator

fceller commented Jul 27, 2015

@eugene-kamenev Thanks for spotting this, will fix.

@fceller
Copy link
Collaborator

fceller commented Jul 27, 2015

@eugene-kamenev I've uploaded a fixed version. Could you test it?

Regarding the edge definition, you should be able to use it similar to the functions described here: https://docs.arangodb.com/General-Graphs/Management.html

Is there a function missing?

@eugene-kamenev
Copy link
Author

@fceller I am working with GraphEntity, I can create graph structure it is not a problem. But as I see there is no methods in GraphEntity to update/modify scheme, especially edit EdgeDefinitionEntity. From the doc you mentioned above, there is no GraphEntity.editEdgeDefinitions method.

@fceller
Copy link
Collaborator

fceller commented Jul 27, 2015

@eugene-kamenev will this method work for you?

/**

  • set the edge definitions (overwrites existing edge definitions)
  • @param edgeDefinitions the edge definitions to be set
    */
    public void setEdgeDefinitions(List edgeDefinitions)

@eugene-kamenev
Copy link
Author

@fceller No, as I tried, it will not upgrade anything. Just creates.

@fceller
Copy link
Collaborator

fceller commented Jul 27, 2015

@eugene-kamenev need to check with my colleague.

@eugene-kamenev
Copy link
Author

@fceller thanks you

BTW I am developing entity mapper in groovylang, similar that i created for orientdb https://github.com/eugene-kamenev/orientdb-groovy and I am experiencing many difficulties, where can I ask questions about arangodb-java-driver and blueprints tinkerpop implementation usage?

@fceller
Copy link
Collaborator

fceller commented Jul 27, 2015

@eugene-kamenev please feel free to contact

hackers (at) arangodb.org

@a-brandt
Copy link
Contributor

Hello @eugene-kamenev

you have to use the function graphReplaceEdgeDefinition of the driver.

GraphEntity graph = driver.graphReplaceEdgeDefinition("myGraph", "myCollection", newEdgeDefinition);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants