spring-projects / spring-data-relational

Spring Data Relational. Home of Spring Data JDBC and Spring Data R2DBC.
https://spring.io/projects/spring-data-jdbc
Apache License 2.0
737 stars 339 forks source link

Consider embedded entities with empty non entity collections empty #1812

Closed schauder closed 4 weeks ago

schauder commented 1 month ago

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

Closes https://github.com/spring-projects/spring-data-relational/issues/1737

mp911de commented 4 weeks ago

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 commented 4 weeks ago

That's merged, polished, and backported now.