Jason Pearson, aged 25, of Queen Street, Swinton, broke in to Italian restaurant Trattoria Toscana in March last year and stole alcohol, Sheffield Crown Court heard.
Pearson was sent to prison for 19 months and two weeks after pleading guilty to commercial burglary at a restaurant.
The court heard that Pearson, who has a history of offending going back more than 10 years, caused £600 worth of damage to both floors of the the restaurant on Newlands Drive during the incident, which happened between March 3 and 6.
In mitigation, Richard Haigh said the defendant had come from a troubled background, but had been trying to turn his life around.
He said: “I know Mr Pearson, and I know he won’t mind me saying that he comes from a dysfunctional family. He has two older brothers and an older sister, I have represented them all many times.
“His first conviction for robbery was at the age of 14 and since then he has committed a number of other offences, mostly with his brothers. They took bikes and took them to their father, who turned them into cannabis and shared it with them.
“He has not been before the court for robbery since 2010 and has not been before the court at all since 2013.
“Now he is 25, he has a completely different outlook on life than he did when he was 14 years old. His life has completely changed and it changed when he started a relationship and discovered that working for a living is much more satisfying than taking other people’s property off them.
“Unfortunately, he had an argument with his girlfriend and was in a state at the timeof the incident. Some of the property has been recovered.That was 12 months ago and in that time he has done what he can to keep his relationship going and his job going.”
He added that the burglary had not been pre-planned and Pearson was remorseful for his actions.
Passing sentence, Judge Robert Moore said he was surprised that Pearson had committed the offence after staying out of trouble for two years.
Two people, a man and a woman, were present in court throughout the sentencing hearing. As Pearson was sentenced, the female began to cry and shouted ‘oh my god’ before running from the court room.
Pearson was also ordered to pay a £900 surcharge fee.