Fix to Hibernate configuration