Updated to Hibernate 4.