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

Support Single Query Loading for aggregates with more than one collection #1622

Closed
wants to merge 7 commits into from

Conversation

schauder
Copy link
Contributor

This does NOT included nested relationships

Closes #1448

@schauder schauder requested a review from mp911de September 20, 2023 14:17
@mp911de
Copy link
Member

mp911de commented Sep 20, 2023

We should add some documentation as the support keeps growing on what we support and what we do not support.

@schauder
Copy link
Contributor Author

That section does exist. And I updated it with the last commit.

Why is it that after 26 years of doing this, I still forget the documentation?

@mp911de
Copy link
Member

mp911de commented Sep 21, 2023

Why is it that after 26 years of doing this, I still forget the documentation?

A couple years ago, we were used to write the docs in post-RC1. We usually forgot about it, so we made it a habit to consider (and include) the documentation in every ticket. That's also what reviews are for.

schauder and others added 7 commits September 27, 2023 09:03
Add github references to tests.

See #1446
Updated the documentation to reflect the changes in Single Query Loading support.

See #1448
Simplify code, remove code that is commented out, extract methods, pass PersistentEntity as argument instead of creating instances that hold PersistentEntity as field to align the class lifecycle with its contextual usage.
Use a single instance as there is no entity-specific state attached to AggregateReader.
@mp911de mp911de force-pushed the issue/more-than-one-collection branch from a3be262 to efaebda Compare September 27, 2023 07:50
@mp911de mp911de added the type: enhancement A general enhancement label Sep 27, 2023
@mp911de mp911de added this to the 3.2 RC1 (2023.1.0) milestone Sep 27, 2023
mp911de pushed a commit that referenced this pull request Sep 27, 2023
mp911de pushed a commit that referenced this pull request Sep 27, 2023
Add github references to tests.

See #1446
See #1448
Original pull request: #1622
mp911de added a commit that referenced this pull request Sep 27, 2023
Remove Jetbrains annotation usage.

Simplify code, remove code that is commented out, extract methods, pass PersistentEntity as argument instead of creating instances that hold PersistentEntity as field to align the class lifecycle with its contextual usage.

Refactor AggregateReader lifecycle, use a single instance as there is no entity-specific state attached to AggregateReader.

Add Javadoc.

See #1448
Original pull request: #1622
@mp911de mp911de closed this Sep 27, 2023
@mp911de mp911de deleted the issue/more-than-one-collection branch September 27, 2023 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Load aggregates that have more than one one-to-m relationship with a single select.
2 participants