Skip to content

Support Composite IDs in R2DBC #2114

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

Closed
wants to merge 4 commits into from
Closed

Conversation

schauder
Copy link
Contributor

@schauder schauder commented Aug 14, 2025

R2DBC now has minimal support for embedded entities.
We can read and write them.
And we can use them as ids.

Closes #2012
Closes #2011

R2DBC now has minimal support for embedded entities.
We can read and write them.
And we can use them as ids.

Closes #2096
See #2011
@schauder schauder requested a review from mp911de August 14, 2025 07:25
mp911de and others added 2 commits August 14, 2025 12:23
We now support querying, updating, sorting and projecting embeddables by resolving these to their individual columns.
@@ -140,18 +162,51 @@ private OrderByField createSimpleOrderByField(Table table, RelationalPersistentE
*/
public Expression getMappedObject(Expression expression, @Nullable RelationalPersistentEntity<?> entity) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we deprecate this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@mp911de mp911de added the type: bug A general bug label Aug 14, 2025
@mp911de mp911de changed the title Fix Composite ids for R2DBC. Fix Composite id usage for R2DBC Aug 14, 2025
@mp911de mp911de self-assigned this Aug 14, 2025
@mp911de mp911de added this to the 4.0 M5 (2025.1.0) milestone Aug 14, 2025
@mp911de mp911de changed the title Fix Composite id usage for R2DBC Support Composite IDs in R2DBC Aug 14, 2025
mp911de pushed a commit that referenced this pull request Aug 14, 2025
R2DBC now has minimal support for embedded entities.
We can read and write them.
And we can use them as ids.

Closes #2012
Original pull request: #2114
mp911de added a commit that referenced this pull request Aug 14, 2025
We now support querying, updating, sorting and projecting embeddables by resolving these to their individual columns.

Closes #2011
Original pull request: #2114
mp911de pushed a commit that referenced this pull request Aug 14, 2025
See #2011
Original pull request: #2114
@mp911de mp911de closed this Aug 14, 2025
@mp911de mp911de deleted the issue/2096-fix-composite-id branch August 14, 2025 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Composite ID in R2DBC Support embedded entities in Spring Data R2DBC
2 participants