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.

Neo4j spring-data issues with @createdDate when using String @Id or customized @Id

@Id
private String id;

We have created customized string @id instead of default long as mentioned above, in our spring boot project

But when we use Neo4jauditing, create and update attributes are getting updated during update operation. Below are the annotations used.

@CreatedDate
private LocalDateTime createdDate;

@LastModifiedDate
private LocalDateTime modifiedDate;

 Can you please suggest if there is any details missing which is causing @CreatedDate getting updated even during update operation.

#Neo4jAuditing #customId

1 REPLY 1

I think you should enable either ... in your SpringBootApplication class

@EnableNeo4jAuditing
@EnableReactiveNeo4jAuditing
Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online