Skip to content
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

Auto-persistence of associations with null ids would be beneficial (for users & ArangoDB) #12

Open
haqer1 opened this issue Feb 12, 2018 · 1 comment

Comments

@haqer1
Copy link
Contributor

haqer1 commented Feb 12, 2018

For instance, for the
https://github.com/arangodb/spring-data#reference
example, when address.id is null, it's not currently auto-persisted; thus it currently has to be persisted separately (prior to persisting the parent entity). In JPA implementations i've worked with, the association(s) would be auto-persisted (allowing to persist an entire aggregate[1] by making only 1 call to persist the aggregate root).

I think it would be beneficial (for users & ArangoDB) if arangodb/spring-data functioned similarly: it would make development easier, & facilitate adoption of ArangoDB. The implementation also shouldn't be difficult...

[1] https://martinfowler.com/bliki/DDD_Aggregate.html

@haqer1 haqer1 changed the title Auto-persistence of null associations would be beneficial (for users & ArangoDB) Auto-persistence of associations with null ids would be beneficial (for users & ArangoDB) Feb 12, 2018
@mvollmary
Copy link

Hi @haqer1,

thanks for the feedback. I'll put that on my todo list.

best
Mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants