ID() function deprecated? How to replace easily?

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!

There was another thread that discussed this. it was recommended to create a spring bean. This worked for me with spring version 3.1.1. If I recall, it did not work with 3.1.2, but did work again for higher versions.

I assume you are using Neo4j v5.

Try it.

    @Bean
    Configuration cypherDslConfiguration() {
        return Configuration.newConfig().withDialect(Dialect.NEO4J_5).build();
    }