-
Notifications
You must be signed in to change notification settings - Fork 132
Add support for simple type projections #41
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
Comments
The simular code is working on spring-data-jpa. Such as DATAJPA-391 |
R2DBC repositories do not support projections yet. |
I repurposed this ticket to add projections. Projections should support:
|
Hope to realize it soon. |
I revisited the topic and realized that we have support for DTO and interface projections. The missing bit is simple type projection (selecting plain In Cassandra, we have solved the issue by registering |
hello @mp911de I have added something really close to the cassandra solution. I still new in this project, so I just submitted a simple class so that you can point me the correct direction. once I get on tracks I will add the tests. I got a few questions:
|
Thanks a lot for getting involved into this ticket. Here are the answers for your questions:
If downloading from repo.spring.io does not work, then we should investigate why this is and fix the cause. Can you provide some more detail information (e.g. compile error message) so we can trace the issue? |
Regarding the installation, I found the problem. My default maven was not a recent one. I did a small test here, I ran the openjdk:8-alpine machine and I was able to install all the dependencies. Thank you |
On a related note: Please do not attach images with code/log/debug output as we cannot search for text in images. |
Rename RowDataConverter to R2dbcConverters. Introduce R2dbcSimpleTypeHolder. Apply custom conversions check in MappingR2dbcConverter. Extend tests. Original pull request: #65.
I'm using spring-data-r2dbc-1.0.0.M1 with r2dbc-postgresql-1.0.0.M6. See below code, failed to select single field value.
Code :
Error message :
My unit test code is FindAllNameMethodImplTest.java
The text was updated successfully, but these errors were encountered: