With Spring CrudRepository Query; I want to select \"DeviceType\" entities with it\'s \"name\" property. But following query select the entitles on case sensitive manner. Ho
In my case adding IgnoreCase did not work at all.
IgnoreCase
I found that it is possible to provide options for the regular expression ,as well:
@Query(value = "{'title': {$regex : ?0, $options: 'i'}}") Foo findByTitleRegex(String regexString);
The i option makes the query case-insensitive.
i