Migration to Hibernate 4.2.5