Hibernate 4.3 fix