I updated Hibernate version to 6.1.7 and it still occurs.
Here’s the repo to reproduce : https://github.com/FloWat/hibernate6bug
The same code works fine with Hibernate 5.4.10