Hi everyone! I have a question that is directly related to this, so I didn't want to create a new topic. After updating Neo4j, I observed the warn message:
2024-03-27T08:50:56,044 [WARN ] [main] [org.springframework.core.log.LogAccessor] - Neo.ClientNotification.Statement.FeatureDeprecationWarning: This feature is deprecated and will be removed in future versions.
OPTIONAL MATCH (hlp:Equipment
) WHERE id(hlp) = $id WITH hlp WHERE hlp IS NULL CREATE (equipment:Equipment
) SET equipment = $properties RETURN equipment UNION MATCH (equipment:Equipment
) WHERE id(equipment) = $id SET equipment += $properties RETURN equipment
^
The query used a deprecated function: id
.
Which is related to the use of the function ID. I understood from this Topic that we should use the function elementId() instead of id().
However, as you can see, this query is/was not created by me. It was generated by Spring/Hibernate. It is created when I call the "given" method "saveAll()". My question is: Is there a way to indicate to Spring/Hibernate to use the elementId() function instead of id() when generating the queries?
Thank you in advance!