Three men were sentenced today for their role in the robbery and 12-hour beating of a man in Long Beach, the Los Angeles County District Attorney’s Office announced.

Patrick John Adams (dob 5/10/94) of San Diego was sentenced to 17 years in state prison. On July 31, Adams pleaded no contest to one felony count each of assault with a semiautomatic firearm and dissuading a witness by force or threat. He admitted inflicting great bodily injury and using a pistol in the assault.

Eric Javier Riddle-Rios (dob 7/15/93) of Anaheim and Ryan Scott Urban (dob 5/14/93) of San Diego were sentenced to six years in state prison. Riddle-Rios pleaded no contest on July 31 to one felony count of second-degree robbery and Urban entered a no contest plea to one felony count of assault with a semiautomatic firearm.

Deputy District Attorney Lucrezia Pratico prosecuted the case.

Adams, assisted by the other two defendants, assaulted the victim on Feb. 20, 2015, and held him until the next day. During the prolonged robbery, the victim was pistol-whipped and his ATM card was used to steal his money, the prosecutor said.

On Feb. 21, 2015, when the victim was taken to a bank to withdraw more money, he managed to get help from bank personnel, the prosecutor added.

Case NA101291 was investigated by the Long Beach Police Department.