I am reporting this as a bug because Hibernate does not explain me what is wrong with my HQL syntax and instead leaves a NPE in the wild.
I found that my syntax contains a trivial error (not referencing properties of associated ManyToOne eager relationship)
Wrong HQL is
Correct HQL is
Movimento class properties:
contoCorrente: POJO ContoCorrente @ManyToOne
An exception that tells there is no such property "organizationId" in class Movimento (because it is a property of movimento.contoCorrente relationship)
I propose this suitable for new contributors because I deem such NPE handling very easy to address