Some update: the problem was actually caused by a bug in Hibernate ORM, HHH-17619 , which is going to be solved in Hibernate ORM 6.4.2.
Some update: the problem was actually caused by a bug in Hibernate ORM, HHH-17619 , which is going to be solved in Hibernate ORM 6.4.2.