LOS ANGELES, California (CNN) -- A plea deal has been reached in the assault case against singer Chris Brown, defense attorney Mark Geragos said in a hearing Monday. Chris Brown, at court Monday, will serve five years probation and must do jail time or community service. Brown, 20, faced charges of assaulting his pop star girlfriend, Rihanna, following a row earlier this year. Under terms of the agreement, Brown will serve five years of probation and must serve 180 days in jail or the equivalent -- about 1,400 hours -- in "labor-oriented service," said Sandi Gibbons, spokeswoman for the Los Angeles County District Attorney's office. He must also undergo a year-long domestic-violence counseling class, she said.
@highlight
NEW: Singer reaches plea deal over attack on girlfriend
@highlight
Singer will serve five years of probation, do community service
@highlight
Brown pleaded not guilty earlier in connection with assault on Rihanna
@highlight
Brown will undergo domestic violence counseling, judge said
Etra said after the hearing that @placeholder "was fully prepared to testify and she would have told the truth about what happened that evening."