Skip to content

Save returns entity without really saving #2214

@kschlesselmann

Description

@kschlesselmann

After upgrading to Spring Boot 3.5.9 we saw some tests failing. It seems that there have been some changes that probably do not handle updates correctly.

e21cdd4#diff-e1718e663d72a945b1dc63ad8117fa9c5277d66a88d33e68c6e0a1269cc04f5eL686

Here is a small sample to reproduce the current behaviour: https://github.com/fortis-it-services/spring-data-relational-entity-save

Generally the ::save method of the repository is just returning the entity (even without actually doing anything because setting the ID results in an UPDATE instead of an INSERT) and suggesting that it saved something (by returning the value). If you later ask the repository for its data it's returning nothing.

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