Nearly two years after being arrested, a former Robstown High School teacher accused of sexual assault has pleaded guilty to maintaining an improper relationship with a student, but will not serve any jail time.

Jesse Julian Hastey, 32, had been facing five counts of sexual assault of a child and seven counts of improper relationship between an educator and student after being arrested in November 2006 when a student came forward alleging a relationship with the teacher.

The former RHS teacher was facing 2 to 20 years in prison or probation.

Monday, however, Hastey accepted a plea bargain from the prosecution that entailed he plead guilty to only one count of maintaining an improper relationship with one of his former students.

The move came as a shock to Hastey's attorney, John Gilmore, who said he was prepared to go to trial.

"I can't tell you why (Hastey) accepted the offer, only that he might have been worried about a jury trial," the defense attorney said after the hearing Monday. "This surprised me."

Prosecutor Sandra Eastwood said she was informed by the victims' families that they did not want to testify in open court and were just seeking an end to the case.

"I wasn't surprised about (Hastey's decision), but this was something the victims wanted in this case," the prosecutor said. "Obviously, if the victims had wanted to testify, I would have proceeded to trial."

Hastey stood before 319th District Judge Tom Greenwell with his hands in his pockets and his head bowed at times while the judge asked him if he was sure of his decision.

"Yes, sir," Hastey replied.

As part of the plea agreement, the former RHS teacher will surrender his educator certification for the state of Texas and serve 10 years of deferred adjudication. Hastey will also have to pay a $1,500 fine and serve 240 hours of community service, as well as possibly attending counseling.

If he should violate the terms of the plea agreement, the former RHS teacher could have his probation revoked and be sentenced to up to 20 years in prison, Eastwood said.