neo4j/java-rest-binding — pull request #1 by FaKod (2012-03-06 18:52:36+00:00)
Title: DynamicRelationshipType overwrites the toString method

If I add some relationships to RestTraversalDescription I have the problem that the traverse returns 0 nodes.

I figured out that DynamicRelationshipType overwrites toString to "DynamicRelationshipType[" + this.name() + "]". This is used to fill a map, that is used to fill the JSON for the POST call. But since toString does not return the type as String only, a wrong JSON is constructed.

The merge request fixes the error for me. But I am not sure if I am doing right...