The JPA Criteria API specification does not provide support for this feature, hence this feature is not implemented by Hibernate as it would require a custom API.
Hibernate Criteria is deprecated and not maintain at all. You should not use it for new projects, as it might be removed in a future version of Hibernate.
However, what exactly is your use case? Maybe you can use an EXISTS with a Subquery
to correlate to “unrelated” entities?