Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 7561b4689339efe919e64b84f1375f3ee8bdac01 1 parent 235d042
@jexp jexp authored
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");
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.