Brett Meyer commented on an issue
Hibernate ORM / Bug HHH-8298
Update query with comparison of entities in subquery where clause
For example, the hql query:

{{update City city set city.anything = :param where (select country.language from City citySub inner join citySub.country country where citySub = city) = :language}}

is translated as :

{{update CITY set ANYTHING=? where (select country2_.LAN_ID from CITY city1_ inner join COUNTRY country2_ on city1_.CTY_CTR_ID=country2...