-
Notifications
You must be signed in to change notification settings - Fork 96
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
Support select()
with KClass<T>
arguments
#825
Comments
I agree with your suggestion. I don't think it's necessary to force reified interfaces in the Kotlin JDSL. I will try to create an interface that accepts a KClass for the select function. But I can't do this this week and next week due to other work. If you can help me with this, I would appreciate it. |
Thank you for kind reply :) |
@minsujang0 Thank you for your help! |
@minsujang0 The public key I use for deployment appears to have expired, so deployment will be delayed. |
@minsujang0 I apologize for the delay in deployment. It's been a while since I've set up a sign, so I had to add the secret key to the settings instead of the public key, but I wrote it down as the public key and got stuck. |
While creating some generic repositories using Kotlin JDSL, I found that there is a case where
<reified T>
or something to transfer type classes.T::class
directly as an argument of typeKClass<T>
.select()
in JDSL has a limited option of only using the reified version.An example code is like this:
To fix this, my current workaround is like this:
If this is an intended work flow, I'm still happy with this.
I know that this use case is quite rare and somewhat undesirable for simplicity of the library, but supporting this might add some flexibilities for users.
The text was updated successfully, but these errors were encountered: