HHH-8551 - Cannot use with-clause on the RHS of a join
HHH-8576 - Query not properly locking non-versioned entities associated with PersistenceContext