This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated myrestaurant-social to spring-data-graph 1.0.0.M02
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.DS_Store | ||
*.ipr | ||
*.iws | ||
*.iml | ||
*.zip | ||
target | ||
*.log | ||
tmp | ||
|
21 changes: 21 additions & 0 deletions
21
myrestaurants-social/src/main/java/com/springone/myrestaurants/DataStoreConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
myrestaurants-social/src/test/java/com/springone/myrestaurants/DataStoreTestConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} |