Skip to content

Getting warning about the deprecated id() function when using the @Id annotation. #2716

Closed
@subhankardas

Description

@subhankardas

I am using the Neo4jRepository and @node entity with @id and @relationship to another node entity and getting an error saying:
023-05-02 00:59:57.789 WARN 17384 --- [ main] org.springframework.data.neo4j.cypher : Neo.ClientNotification.Statement.FeatureDeprecationWarning: This feature is deprecated and will be removed in future versions. OPTIONAL MATCH (hlp:Customer) WHERE id(hlp) = $__id__ WITH hlp WHERE hlp IS NULL CREATE (customer:Customer) SET customer = $__properties__ RETURN customer UNION MATCH (customer:Customer) WHERE id(customer) = $__id__ SET customer += $__properties__ RETURN customer ^ The query used a deprecated function. ('id' is no longer supported)
I am assuming this is due to the @id annotation which is internally using deprecated function, so is there any planned release for this fix?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions