I agree with Aupmanyav, in fact I am shocked that someone would confuse the actions imposed by parents on children with the personal history of one of the greatest humans to have walked on this earth, Mahavira.
I attend a Jain temple off and on in Milpitas (San Jose) California, because I respect Mahavira so much even though I am an angry typical human full of my own hate and even violence, just as I respect Siddhartha the Buddha. Without these two, and my Hindu wife, I would probably be in prison. But there are many forms of prison, and I am so grateful to both Mahavira and the Buddha for showing me how to at least remain somewhat human.
Many do not understand the true "history" of Dharma. At the time of the Buddha, there actually wasn't a particular "distinct religion" between Jains and Hindus - they were in fact just two diverse "sects" of the very same glory. Of course, Buddhism wasn't a name used in those days - just as Hinduism was not as well - but Prince Siddhartha was in fact what could be termed in modern usage a Hindu without question, and he was a contemporary of Mahavira and Jaina savants, in fact it was Jain advisors which were common to Royalty in those times who influenced Lord Buddha to undertake a reform movement of Hinduism against animal slaughter and caste extremists.
I love Mahavira with all my heart.