Hello,

I am a bit new to both Neo4j but this is more of an SDN specific question 
so I apologize in advance if this is the incorrect forum for this.  I am 
working to get a minimal cross store (JPA + SDN) project set up and having 
some trouble with it.  I've followed the instructions on the docs and have 
a config class that looks like:

@Configuration

@ComponentScan

@EnableAutoConfiguration

@EnableJpaRepositories

@EnableTransactionManagement(mode = AdviceMode.ASPECTJ)

@EnableJpaAuditing

@EnableNeo4jRepositories
public class Neo4jConfig extends CrossStoreNeo4jConfiguration {

  
  public Neo4jConfig() {

     setBasePackage("com.m1finance.entity");

  }

  @Bean
  public GraphDatabaseService graphDatabaseService() {
    return new SpringCypherRestGraphDatabase(
"http://localhost:7474/db/data/";, "user", "pw");
  }
}


So far I can verify in the logs that a chained tx manager is being used and 
that an initial REST call is definitely being made to my local Neo4j DB.

I have a partial NodeEntity and would like to perform a sanity check by 
persisting it to an in memory H2 DB using a JPA respository call in a JUnit 
test.  This seems to work fine with no errors (an ID is generated on the 
entity, etc) but absolutely nothing happens on the Neo4j side.  Nothing in 
the test logs, nothing in the DB logs, no calls are being made.  My 
questions are:

   - Is the basic assumption that saving the partial entity using a Jpa 
   repo should create a graph node correct?  Or am I supposed to be making 
   individual calls (e.g. one to persist in my RDBMS and another in Neo4j)?
   - My research on the internet indicates that the cross store 
   functionality is driven by aspects.  Is this correct? I've included the 
   plugin to download the required dependencies per the docs but are there any 
   ways to verify that things are actually set up properly?

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to