Please attach a runnable test case that reproduces your issue. You can find test templates at https://github.com/hibernate/hibernate-test-case-templates.