For information, I reported the same problem here: Migration hibernate 5 -> 6 @OneToMany with outer join not correct - Hibernate ORM - Hibernate