update hibernate to v4