I am just looking at the same code and asked this myself. But if you try our test case we have on github you will see that it somehow works with Hibernate 4. I was actually hoping that you can explain this