I am trying to run a very minimal JPA + SDN (Spring Data Neo4j) firewall project, and I am trying to demonstrate that saving a partial object using a JPA repository call will create the corresponding node in Neo4j.
I followed the instructions / tips I could find on the SO, Google, and Spring sites, but currently I'm still having problems with this. I currently have a minimal test project created at:
https://github.com/simon-lam/sdn-cross-store-poc
The project uses Spring Boot and has a simple domain containing a graph object GraphNodeEntity.javaand a partial object PartialEntity.java. I wrote a very simple test PartialEntityRepositoryTest.javato do a save on a partial object and see:
- The wrong transaction manager seems to be used because the class is
CrossStoreNeo4jConfigurationnot autowire correctly entityManagerFactory, it is null - As a result of the foregoing ^ identifier is not assigned to my entity
- I donβt see SDN activity in logs at all
- Am I doing something ridiculous?
More generally, I was hoping to confirm some assumptions and better understand support for maintaining cross-storage in general:
- To enable it, do I need to enable advanced mapping?
- , AspectJ; , ?
@EnableLoadTimeWeaving config? - , , , Neo4j, , JPA? -, ?
, !