updating hibernate dependency to latest version
returning PersistentObjectFactory instead of ObjectFactory