Skip to content

Predicates on plural paths operate on collection instead of joins #4110

@xanscale

Description

@xanscale

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]

Metadata

Metadata

Assignees

Labels

type: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions