I'm sorry, but I didn't know it's related to batch fetching (I don't know Hibernate Core deeply yet). Nevertheless, the uploaded test case contains a minimal configuration where batch fetching is enabled.