Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
updated myrestaurant-social to spring-data-graph 1.0.0.M02
Browse files Browse the repository at this point in the history
  • Loading branch information
jexp committed Feb 17, 2011
1 parent 235d042 commit 7561b46
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
*.ipr
*.iws
*.iml
*.zip
target
*.log
tmp

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.springone.myrestaurants;

import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.kernel.EmbeddedGraphDatabase;
import org.springframework.data.graph.neo4j.config.AbstractNeo4jConfiguration;

/**
* @author mh
* @since 01.02.11
*/
public class DataStoreConfig extends AbstractNeo4jConfiguration {
@Override
public boolean isUsingCrossStorePersistence() {
return true;
}

@Override
public GraphDatabaseService graphDatabaseService() {
return new EmbeddedGraphDatabase("target/data/recommendation");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.springone.myrestaurants;

import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.kernel.EmbeddedGraphDatabase;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.graph.neo4j.config.AbstractNeo4jConfiguration;

/**
* @author mh
* @since 01.02.11
*/
@Configuration
public class DataStoreTestConfig extends AbstractNeo4jConfiguration {
@Override
public boolean isUsingCrossStorePersistence() {
return true;
}

@Override
public GraphDatabaseService graphDatabaseService() {
return new EmbeddedGraphDatabase("target/data/test");
}
}

0 comments on commit 7561b46

Please sign in to comment.