A judge on Monday allowed .
Johnson, 41, is a teacher accused of having sex with a former student.
Other records were also discussed during Monday's hearing.
The victim's medical and mental health records will remain sealed unless he is called to testify at a future pre-trial, Judge Jacob Blea III said during the hearing at the Pleasanton court house.
Johnson's attorney, Elizabeth Grossman, said any statements the victim made to a psychotherapist regarding Johnson would be relevant to the case.
The victim's parents attended Monday's hearing and addressed the court.
His mother told Blea that they were against the records being released and did not see how the documents are relevant to the abuse her son has endured.
Johnson faces charges of unlawful sexual intercourse with a person under 18, oral copulation and committing a lewd act on a child, according to court records.
, police said.
Johnson, who on Feb. 23, is being held at Santa Rita Jail in Dublin in lieu of a $950,000 bail.
A pre-trial is scheduled for 2 p.m. Oct. 11 in Department 703 of the Gale-Schenone Hall of Justice in Pleasanton. If needed, the hearing would continue the following morning at 9 a.m.