Working example
https://github.com/xanscale/SpringDataBadJpqlGrammarException
- README.txt contains log with spring boot 4.0
- README_3.5.8.txt contains log with spring boot 3.5.8 that's works perfectly
org.springframework.data.jpa.repository.query.BadJpqlGrammarException: org.hibernate.query.PathException: Plural path 'com.example.demo.C(c).bbb' refers to a collection and so element attribute 'aaa' may not be referenced directly (use element() function); Bad SELECT c FROM C c WHERE c.bbb.aaa IS NOT EMPTY grammar [JPQL]