cancel
Showing results for 
Search instead for 
Did you mean: 

mapping.DefaultNeo4jIsNewStrategy: Instances of class with an assigned id will always be treated as new without version property!

9mikev
Node Link

When initializing my graph through java spring boot I get the following warning:

mapping.DefaultNeo4jIsNewStrategy: Instances of class with an assigned id will always be treated as new without version property!

What is the meaning of this message? Am I supposed to somehow add a "version" property?

My class looks like this:


@Node
public class MyNode {

    @Id
    String id;
    String name;
    String type;

    public MyNode() {
    }

    public MyNode(String id, String name, String type) {
        this.id = id;
        this.name = name;
        this.type = type;
    }

    // Getters and setters... 
}

Any help would be appreciated!

1 ACCEPTED SOLUTION

View solution in original post

3 REPLIES 3

gerrit_meier
Neo4j
Neo4j

Yes, because SDN cannot decided if the entity is a new node or should reflect an existing one.

Can you give an example or a link of the syntax of the "version"property?