The first step, I'm going to integrate your test case into Hibernate core. Afterward, I'm going to check what happens that we get this exception thrown.