Spring Boot @Query in CrudRepository not always working properly after upgrade from 2.2.x to 2.4.1 (or 2.3.7.RELEASE)

I tried the __CAS because that was the exact point where nullpointer hapened (you can see that in screenshot). We’ll try your lowercase suggestion and I’ll get back to you (but it won’t be very soon - we had to give up from upgrade due to timelines). Perhaps suggest the same solution to @iisuru in his post - it sure look like same issue.