-
Notifications
You must be signed in to change notification settings - Fork 10
feat: Support adding @YdbType annotation to method parameters #173
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@zdazzy Existing Have you extended the |
@mipo256 The annotation is currently only applicable to fields. Placing it on method parameter will result in a compilation error. |
Yes, I got the general idea of what you're trying to do. CC: @KirillKurdyukov please, add the |
The first top-level review of the problem unravels the following approach. We can specify the custom That would solve the problem. However, there are a couple of caveats.
So, we need to think about it more deeply. CC: @KirillKurdyukov |
UPDATE: After discussion with Spring Data team: The corresponding Spring Data JDBC change would be introduced in 4.0.x major release. When this will be done, we'll be able to implement this feature. |
Thanks Misha! |
To cover the following (and all similar) case:
The inferred
limit
parameter type here is Int64, while YDB requires it to be exaclty UInt64.There are other cases where implicit type conversion fails. So a way to control this behavior would be great. An existing @YdbType annotation seems like a good solution.
The text was updated successfully, but these errors were encountered: