Browse files

updated myrestaurant-social to spring-data-graph 1.0.0.M02

  • Loading branch information...
1 parent 235d042 commit 7561b4689339efe919e64b84f1375f3ee8bdac01 @jexp jexp committed Feb 17, 2011
View
9 .gitignore
@@ -0,0 +1,9 @@
+.DS_Store
+*.ipr
+*.iws
+*.iml
+*.zip
+target
+*.log
+tmp
+
View
21 myrestaurants-social/src/main/java/com/springone/myrestaurants/DataStoreConfig.java
@@ -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");
+ }
+}
View
23 myrestaurants-social/src/test/java/com/springone/myrestaurants/DataStoreTestConfig.java
@@ -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.