I attempted to create a test case using your template but could not reproduce the issue. I suspect there is something going on between Spring 6 and the latest version of Hibernate.