Bring up to date

Use up to date Hibernate version and removed overrides of obsolete methods.