-
Notifications
You must be signed in to change notification settings - Fork 192
Crud repository query methods are not working with List<Enum> as a parameter. #1855
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
Can you please look at the solution in #1837 ? If that does not help, can you show your application and where it fails? |
I tested on 5.1.5 and it still doesn't work. I am not overriding any couchbase configuration. I am only having single ListCrudRepository bean, where all methods are working expect the one mentioned above. I will to provide mini project reproducing it in the coming days |
There's a bigger stacktrace:
|
Yes. I never actually fixed it. I just provided a work-around. Sorry for sending you down that path.
That's the issue. Since you don't override it, you get one provided for you ... the couchbaseCustomConversions created in CouchbaseDataConfiguration does not have the Enum converters (I'll need to work with spring-boot-autoconfigure to fix that). The work-around in #1837 is to have the @configuration class extend AbstractCouchbaseConfiguration (see the last post in #1837). |
Alright, thank you! Is there a chance that the autoconfiguration fix will come anywhere soon? |
The fix is merged into main. It will be in the next release which is scheduled for November 17. It will already be in the latest 5.2 SNAPSHOT. I'll merge it into the 5.1 and 5.0 branches to day and it will be in those SNAPSHOTS tomorrow. There is information in the doc how to get the SNAPSHOTs @jakubszybisty . I've used #1837 as the main issue for this, so you'll find more details there. |
Hello,
I am trying to write a method which accepts List containing enum as a parameter in an interface extending ListCrudRepository<T, UUID>
T findByEnumType(List<EnumType> enums)
however, in the result exception is thrown:
The text was updated successfully, but these errors were encountered: