updating hibernate