A man who took out an axe when he was attacked inside a Hartlepool mini market has been jailed in a deterrent to others by the courts.