Skip to content

Move Conversion-related functionality to MappingR2dbcConverter. #62

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 2 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Feb 19, 2019

All conversion functionality is now pulled together into MappingR2dbcConverter.

Introduce OutboundRow to provide mapping between column names and settable values. Remove identifier from SettableValue.


Related ticket: #61.

Copy link
Contributor

@schauder schauder left a comment

Choose a reason for hiding this comment

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

Just one small thing.

@@ -77,7 +78,12 @@ public R2dbcRepositoryFactory(DatabaseClient databaseClient,
this.databaseClient = databaseClient;
this.mappingContext = mappingContext;
this.dataAccessStrategy = dataAccessStrategy;
this.converter = new MappingR2dbcConverter(new BasicRelationalConverter(mappingContext));

if (dataAccessStrategy instanceof DefaultReactiveDataAccessStrategy) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like the check against a specific implementation.
I'd rather have an interface (e.g. WithConverter) which other implementations can use to denote that they use a R2dbcConverter inside which we can extract.

@schauder schauder assigned mp911de and unassigned schauder Mar 5, 2019
@mp911de mp911de force-pushed the issue/gh-61 branch 2 times, most recently from bd6374f to 65634ee Compare March 5, 2019 12:51
mp911de added 2 commits March 5, 2019 13:52
All conversion functionality is now pulled together into MappingR2dbcConverter.

Introduce OutboundRow to provide mapping between column names and settable values. Remove identifier from SettableValue.
@mp911de
Copy link
Member Author

mp911de commented Mar 5, 2019

That's fixed now.

schauder pushed a commit that referenced this pull request Mar 5, 2019
All conversion functionality is now pulled together into MappingR2dbcConverter.

Introduce OutboundRow to provide mapping between column names and settable values. Remove identifier from SettableValue.

Original pull request: #62.
@schauder
Copy link
Contributor

schauder commented Mar 5, 2019

That's merged.

@schauder schauder closed this Mar 5, 2019
@mp911de mp911de deleted the issue/gh-61 branch March 22, 2019 09:19
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.

2 participants