| Another workaround is to add a collection to IT
@OneToMany(mappedBy="...") private Set<PT> pts;
and rewrite not exists to is empty
delete from IT i where i.pts is empty
Hibernate does not generate an alias in that case but uses the table name as such in the subselect, which is correct. I did not analyze if there is a similar way for updates |