Hello Steffen Schäfer, the unexpected alias is used because your query would need an implicit join (PrivateSubData with PrivateData) to use the person_id column. Joins are currently not supported for mutation queries in Hibernate 6. I also tested your example with Hibernate 5.6 since you reported it was working but it did not work for me. One way to work around this would be using a subquery, something like:
update PrivateSubData psd set psd.dataName = '...'
where psd.data.id in (select data.id from PrivateData data where data.person.id = ?1)
|