This repository was archived by the owner on Jan 18, 2022. It is now read-only.
File tree 3 files changed +53
-0
lines changed
main/java/com/springone/myrestaurants
test/java/com/springone/myrestaurants
3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ .DS_Store
2
+ * .ipr
3
+ * .iws
4
+ * .iml
5
+ * .zip
6
+ target
7
+ * .log
8
+ tmp
9
+
Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments