-
Notifications
You must be signed in to change notification settings - Fork 57
[DE-539] Feature #291 CRUD save returning server result #295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d5bf13c
to
d6d2591
Compare
Hi @aburmeis , in the Spring Data Commons reference documentation you can find a chapter about
This logic is implemented by The current implementation of Spring Data ArangoDB uses Changing this would be now a breaking change, which we could implement in the next major release. So for the moment I would suggest keeping the current behavior in On the other side, In addition to the problems you mentioned, this does not work with entities with immutable properties being updated from the server side (like auto-generated This also prevents the use of As temporary work-around, we can go with the solution you submitted in this PR, but note that this will likely change again in the next major release to reflect the behavior reported above. Thanks for contributing! |
fixes #291 |
d6d2591
to
feb6f31
Compare
SimpleArangoRepository.save()
andsaveAll()
can now be configured to return the entity created from the server result instead of the original (#291). As the may lead to unexpected behaviour, the default is using the old behaviour.The configuration can be done by a
RepositoryFactoryCustomizer
, which can be prepared in an upcomingspring-boot-starter
version.fixes #291