Results 1 to 2 of 2

Thread: Cleaning Spring Rest Graphdatabase

Hybrid View

  1. #1

    Default 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 at 11:12 AM.

  2. #2
    Join Date
    May 2012
    Posts
    107

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •