Skip to content

Ensure that internal database ids are accessed via id(n) in nested, derived query methods. [DATAGRAPH-1231] #1792

Closed
@spring-projects-issues

Description

@spring-projects-issues

Ozgur H opened DATAGRAPH-1231 and commented

When findById() method defined on the repository is used, SDN correctly uses the ID( n ) = \{...} syntax. However, when one tries to access the same logic for a child/field entity, the query is constructed with a format like:

m0.id=\{id_0 }

which of course doesn't work for internal Neo4J ids.

 

If possible, it would be nice to have the framework figure out that the referred object is a graph entity, which requires special ID filtering logic, and creates the query accordingly


Affects: 5.1.8 (Lovelace SR8)

Reference URL: https://docs.spring.io/spring-data/neo4j/docs/5.1.8.RELEASE/reference/html/#repositories.query-methods.query-property-expressions

Metadata

Metadata

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions