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

Commit 7561b46

Browse files
committed
updated myrestaurant-social to spring-data-graph 1.0.0.M02
1 parent 235d042 commit 7561b46

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.DS_Store
2+
*.ipr
3+
*.iws
4+
*.iml
5+
*.zip
6+
target
7+
*.log
8+
tmp
9+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.springone.myrestaurants;
2+
3+
import org.neo4j.graphdb.GraphDatabaseService;
4+
import org.neo4j.kernel.EmbeddedGraphDatabase;
5+
import org.springframework.data.graph.neo4j.config.AbstractNeo4jConfiguration;
6+
7+
/**
8+
* @author mh
9+
* @since 01.02.11
10+
*/
11+
public class DataStoreConfig extends AbstractNeo4jConfiguration {
12+
@Override
13+
public boolean isUsingCrossStorePersistence() {
14+
return true;
15+
}
16+
17+
@Override
18+
public GraphDatabaseService graphDatabaseService() {
19+
return new EmbeddedGraphDatabase("target/data/recommendation");
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.springone.myrestaurants;
2+
3+
import org.neo4j.graphdb.GraphDatabaseService;
4+
import org.neo4j.kernel.EmbeddedGraphDatabase;
5+
import org.springframework.context.annotation.Configuration;
6+
import org.springframework.data.graph.neo4j.config.AbstractNeo4jConfiguration;
7+
8+
/**
9+
* @author mh
10+
* @since 01.02.11
11+
*/
12+
@Configuration
13+
public class DataStoreTestConfig extends AbstractNeo4jConfiguration {
14+
@Override
15+
public boolean isUsingCrossStorePersistence() {
16+
return true;
17+
}
18+
19+
@Override
20+
public GraphDatabaseService graphDatabaseService() {
21+
return new EmbeddedGraphDatabase("target/data/test");
22+
}
23+
}

0 commit comments

Comments
 (0)