Hibernate upgrade