Sorry to bother, but still IMHO this bug is not fixed, and I think it should be reopened. To run with 5.1.3, the above dependency to hibernate-entitymanger needs to be included. I can also upload the testcase ready-to-run with 5.1.3.