How do you get your ex back if they hate you?

If they hate you chances are, you won't get them back, and you probably should move on.

However, you could try to mending what was broken, be it trust, feelings, pride, and so on. Show them that you still care for them and that you'd like another chance. Apologize for what you did to them and hope they want to take you back.