Presumptive Republican presidential nominee Donald Trump railed against the judge in the legal battle over Trump University, telling a large crowd Friday in San Diego, "There should be no trial."
"We're in front of a very hostile judge. The judge was appointed by Barack Obama," Trump told a campaign rally on the same day as a hearing was held in San Diego over his online real estate school, which closed in 2010. "I mean frankly, he should recuse himself because he's given us ruling after ruling after ruling, negative, negative, negative."
U.S. District Court Judge Gonzalo Curiel "happens to be, we believe Mexican, which is great. I think that's fine," Trump added of the judge, who was born in East Chicago, Indiana.
But he's "not doing the right thing," Trump told the rally.
RELATED: More protests follow Trump in day of California rallies
"I have a judge who is a hater of Donald Trump, a hater, he's a hater," he continued. "I'm getting railroaded by a legal system that frankly they should be ashamed."
The class-action civil lawsuit accuses the real estate mogul of fraud after students paid up to $35,000 for courses they say were worthless. The trial was postponed until November, after the presidential campaign ends.
"Wouldn't that be wild if I'm president and I come back to do a civil case?" Trump asked.
"I think Judge Curiel should be ashamed of himself. I think it's a disgrace that he's doing this and I look forward to going before a jury not this judge, a jury, and we will win that trial."
Trump's comments were part of a meandering speech on a day of campaign stops in California. Both his Fresno and San Diego rallies were interrupted by protesters, some of whom were demonstrating against Trump's immigration stance.
"Because of the wall and because of everything that's going on with Mexico … this is a judge who I believe has treated me very, very unfairly," Trump said.
This article originally appeared on NBCNews.com.