NullPointerException when implicit joining over @JoinFormula/@JoinColumnOrFormula

Description

We have this mapping in our project
Mod.java

and when issuing this query

we get this error

also discussed here https://discourse.hibernate.org/t/nullpointerexception-on-a-query-with-an-embedded-table/3721

Environment

None

Activity

Show:
Nathan Xu
September 22, 2020, 2:54 AM

Could you create a self-contained testing case (maybe by creating a specific branch) so I can reproduce the issue more easily? Currently it is really intimidating to reproduce the bug from my side, :(.

Bukaj Sytlos
September 23, 2020, 8:46 AM

Hi. Not sure :(. Do you have some example project of bootstrapping hibernate to provide test case?

Nathan Xu
September 23, 2020, 11:35 AM

Vlad has some bootstrap project as he mentioned in https://in.relation.to/2018/06/04/best-way-write-hibernate-orm-issue-test-case/. The other alternative he mentioned is better but what really matters is to reproduce the bug in a minimal setting (deleting all the irrelevant content to leave the minimal).

Looking forward to your response!

Bukaj Sytlos
September 26, 2020, 3:32 PM

Assignee

Jan-Willem Gmelig Meyling

Reporter

Bukaj Sytlos

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.3.15

Components

Affects versions

Priority

Major
Configure