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:
Task
node, which can have oneStatus
(HAS_STATUS
outgoing relationship)Status
node, which can haveHAS_STATUS
incoming relationships from differentTask
nodes
One can manipulate the nodes using Spring shell commands:
create-statuses
- creates all three demoStatus
nodes at once: todo, in_progress, donecreate-task
- creates task node with provided task key and status key, usage example:
create-task TASK1 todo
update-task-status
- updates the task with a newStatus
, usage example:
update-task-status TASK1 in_progress