Skip to content

[BUG 4.0] Plural path refers to a collection and so element attribute may not be referenced directly (use element() function) #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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions