A jail sentence has been handed to a man who admitted to harassing a Banbury café owner for over a year.