A predatory teacher repeatedly preyed on a vulnerable pupil during her years at his County Durham school, a court heard.