This is a simple Spring Boot project to showcase the problem described on StackOverflow here:
And also reported here:
https://jira.spring.io/browse/DATAGRAPH-1082
EDIT: The issue is now resolved by adding @Transactional annotation to command methods
The demo uses Spring Boot framework with Spring Data Neo4j module. There are two nodes and one relationship between them defined:
Tasknode, which can have oneStatus(HAS_STATUSoutgoing relationship)Statusnode, which can haveHAS_STATUSincoming relationships from differentTasknodes
One can manipulate the nodes using Spring shell commands:
create-statuses- creates all three demoStatusnodes at once: todo, in_progress, donecreate-task- creates task node with provided task key and status key, usage example:
create-task TASK1 todoupdate-task-status- updates the task with a newStatus, usage example:
update-task-status TASK1 in_progress