Announcement Announcement Module
Collapse
No announcement yet.
Cleaning Spring Rest Graphdatabase Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cleaning Spring Rest Graphdatabase

    I'm using a rest graph database and I would like to use Neo4jHelper.cleanDB to clean it in my test setup.
    However, it seems the used RestGraphdabase class is not implementing the getNodeManager() method, which is invoked in the invocation chaining, starting from the cleanDB method.
    The parent class AbstractRemoteDatabase, which is used in turn, has a partial implementation, throwing an Unsopported exception.

    public NodeManager getNodeManager() {
    throw new UnsupportedOperationException();
    }

    I'm using version 2.1.0.RC3 of both spring-data-neo4j and spring-data-neo4j-rest.

    Any clean solution to clean DB?
    Thanks
    Last edited by DavidKundalini; Sep 25th, 2012, 12:12 PM.

  • #2
    David,

    As a workaround, maybe a cypher query?

    Code:
    start n=node(*) match n-[r?]->() delete n,r
    As for the actual problem: could you raise an issue here: https://jira.springsource.org/browse/DATAGRAPH (do try SDN RC4 first though)

    Lastly, wiping a database is rare I think - is this just for testing? If so I recommend ImpermanentGraphDatabase from http://repo2.maven.org/maven2/org/ne....RC1-tests.jar

    Regards,

    Lasse

    Comment

    Working...
    X