SANTA ANA (CBS) — A retired Orange County high school teacher will spend one year in jail after pleading guilty to having sex with a student.

KNX 1070’s Kim Marriner reports David Araya, 57, had taught Spanish classes at Laguna Hills High School for nearly a decade and had been a highly-regarded teacher for almost 30 years.

READ MORE: San Bernardino County Cracking Down On Sale, Use Of Illegal Fireworks With New Reporting Tool

Araya became involved with a 17-year-old student after the two engaged in sexual contact three times in September and October of 2009 in Araya’s classroom.

READ MORE: NBC Will Not Air 2022 Golden Globes Amid Hollywood Foreign Press Association Controversy

The relationship was eventually discovered by the girl’s mother in August 2009 after she read Facebook messages sent between the teacher and her daughter.

Araya enrolled in a treatment program six months before charges were even filed.

MORE NEWS: Game On: LAUSD Says Venice High Baseball Team Can Play On Renovated Field

In addition to prison time and three years probation, Araya must register as a sex offender for the rest of his life.