Coder Social home page Coder Social logo

adi3ek / neo4j-spring-boot-demo Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 54 KB

Change or delete relationship between nodes with Neo4j OGM and Spring Boot Data

Home Page: https://stackoverflow.com/questions/49783019/unable-to-change-or-delete-relationship-between-nodes-with-neo4j-ogm-and-spring

Java 100.00%
spring-boot neo4j-ogm spring-data-neo4j java

neo4j-spring-boot-demo's Introduction

This is a simple Spring Boot project to showcase the problem described on StackOverflow here:

https://stackoverflow.com/questions/49783019/unable-to-change-or-delete-relationship-between-nodes-with-neo4j-ogm-using-sprin

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 one Status (HAS_STATUS outgoing relationship)
  • Status node, which can have HAS_STATUS incoming relationships from different Task nodes

One can manipulate the nodes using Spring shell commands:

  • create-statuses - creates all three demo Status nodes at once: todo, in_progress, done

  • create-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 new Status, usage example:

    update-task-status TASK1 in_progress

neo4j-spring-boot-demo's People

Contributors

adi3ek avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.