We had a Query like this:
(“select u.email from User u where u.username in (select ugu.username from bpm_UserGroup ug join bpm_UserGroupUser ugu ON ug.id = ugu.userGroup.id)”, String.class)
With this query, the following exception happened:
column t1.username does not exist, did you mean t0.username?
Since I assume t0 is u, t1 must be ug and t2 must be ugu, the query generates the wrong t# for ugu in ugu.username
If we changed the order to
bpm_UserGroupUser ugu join bpm_UserGroup ug
then it was working properly.
Not sure if we did something wrong, but I wanted to report it in case it’s a bug.