The test case runs successfully in Hibernate 4, so this is no longer a bug in this version. I've attached the updated test, in case you need it.