cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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

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?