-
Notifications
You must be signed in to change notification settings - Fork 57
CRUD Repository save and saveAll should return fetched entity instead of original #291
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
Comments
aburmeis
added a commit
to aburmeis/spring-data
that referenced
this issue
Nov 7, 2023
aburmeis
added a commit
to aburmeis/spring-data
that referenced
this issue
Jan 8, 2024
aburmeis
added a commit
to aburmeis/spring-data
that referenced
this issue
Jan 8, 2024
aburmeis
added a commit
to aburmeis/spring-data
that referenced
this issue
Jan 9, 2024
aburmeis
added a commit
to aburmeis/spring-data
that referenced
this issue
Jan 9, 2024
Is there any convention about it in Spring Data NoSQL projects?
|
rashtao
pushed a commit
to aburmeis/spring-data
that referenced
this issue
Feb 2, 2024
rashtao
pushed a commit
to aburmeis/spring-data
that referenced
this issue
Feb 2, 2024
rashtao
added a commit
that referenced
this issue
Feb 6, 2024
* #291 return fetched instead of original entity * remove some warnings * #291 make the behaviour customizable, defaulting to the old one * fixed tests config 5492 * test with java records * test with immutable entities * added returnOriginalEntities configuration --------- Co-authored-by: Michele Rastelli <michele@arangodb.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
If you want to use any relations included by annotated members, currently an additional fetch is needed as the original saved entity typically has no proxies for relations or refs.
This is also a very typical behaviour of other spring data implementations. Not sure if this is a bug or an enhancement.
The code involved are the default implementations in
SimpleArangoRepository
which currently does an explicit return of the original entity instead of returning theREPSERT
result insave()
andsaveAll()
.The text was updated successfully, but these errors were encountered: