Hm, replacing Hibernate with 4.1.9.Final resolves the issue in my actual application, but not in the testcase, strange.