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

Consider embedded entities with empty non entity collections empty #1812

Closed
wants to merge 2 commits into from

Conversation

schauder
Copy link
Contributor

Embedded entities which contain a empty collection of values that aren't entities are now considered empty, if this collection is empty.

Closes #1737

schauder added 2 commits June 7, 2024 16:25
Embedded entities which contain a empty collection of values that aren't entities are now considered empty, if this collection is empty.

Closes #1737
@mp911de
Copy link
Member

mp911de commented Jun 10, 2024

The commit message/PR description doesn't match the fix at all. Isn't it instead that we change our assumptions when we figure out that a collection should contain entities?

mp911de pushed a commit that referenced this pull request Jun 11, 2024
… holds entities.

Embedded entities which contain a empty collection of values that aren't entities are now considered empty, if this collection is empty.

Closes #1737
Original pull request: #1812
mp911de added a commit that referenced this pull request Jun 11, 2024
Use ObjectUtils.isEmpty for emptiness check.

See #1737
Original pull request: #1812
mp911de pushed a commit that referenced this pull request Jun 11, 2024
… holds entities.

Embedded entities which contain a empty collection of values that aren't entities are now considered empty, if this collection is empty.

Closes #1737
Original pull request: #1812
mp911de added a commit that referenced this pull request Jun 11, 2024
Use ObjectUtils.isEmpty for emptiness check.

See #1737
Original pull request: #1812
mp911de pushed a commit that referenced this pull request Jun 11, 2024
… holds entities.

Embedded entities which contain a empty collection of values that aren't entities are now considered empty, if this collection is empty.

Closes #1737
Original pull request: #1812
mp911de added a commit that referenced this pull request Jun 11, 2024
Use ObjectUtils.isEmpty for emptiness check.

See #1737
Original pull request: #1812
@mp911de
Copy link
Member

mp911de commented Jun 11, 2024

That's merged, polished, and backported now.

@mp911de mp911de closed this Jun 11, 2024
@mp911de mp911de deleted the issue/1737-nullable-embedded-with-collection branch June 11, 2024 08:26
schauder added a commit that referenced this pull request Jul 2, 2024
schauder added a commit that referenced this pull request Jul 2, 2024
schauder added a commit that referenced this pull request Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@Embedded.Nullable returns as non-null for null collection property
2 participants