updated to Hibernate