Skip to content

FindByXXX fails to work with field marked as Id #1321

Closed
@shaniiwild

Description

@shaniiwild

Hi!
Before the upgrade to Spring Data 4.3 we had the following derived query working fine:
image

The find by was accessing this field with the name 'key' which is marked as Id by annotation and results were retrieves as expected.
image
(Please note: It worked without n1ql implementation)

Following the upgrade, derived methods which are approaching field marked with @id failed to retrieve results (Also with combination of another fields, For example: findByKeyAndStatus()).
We solved it using CrudRepository inherited method of findById()
But We would still like to understand what has changed that it's now fails to work? is it a bug?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions