Skip to content

Commit

Permalink
configured neo4j as persistent database
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger Kowalewski committed Aug 16, 2013
1 parent 27f6de4 commit 0b22b8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public class SpringDataNeo4jProductUserTest {
@Autowired
private UserRepository userRepository;

@Autowired
GraphDatabaseService graphDatabaseService;
// @Autowired
// GraphDatabaseService graphDatabaseService;

User jordan, pippen, miller;
Product pizzaMargarita, pizzaFungi, pizzaSalami, pizzaVegitarian, pizzaRustica;
Expand Down Expand Up @@ -138,8 +138,8 @@ private void userClickedProduct(User user, Product product) {
productRepository.save(product);
}

@After
// @After
public void cleanDB() {
Neo4jHelper.cleanDb(graphDatabaseService);
// Neo4jHelper.cleanDb(graphDatabaseService);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<context:spring-configured/>
<context:annotation-config/>

<neo4j:config storeDirectory="target/data/db" graphDatabaseService="graphDatabaseService"/>
<neo4j:config storeDirectory="target/data/db"/>

<bean id="graphDatabaseService" class="org.neo4j.test.ImpermanentGraphDatabase" destroy-method="shutdown"/>
<!--<bean id="graphDatabaseService" class="org.neo4j.test.ImpermanentGraphDatabase" destroy-method="shutdown"/>-->

<neo4j:repositories base-package="com.comsysto.springDataNeo4j.showcase"/>

Expand Down

0 comments on commit 0b22b8c

Please sign in to comment.