One should not jump to conclusions to say that you’re being a bad parent or you’ve done something worthy of being hated. From what I’ve seen of children and parents, the kids are just frustrated and don’t know how else to express those negative feelings they have in that particular moment.
They may hate you because they know it has power over you so they say it. Don’t react. Your child probably doesn’t hate you and in fact they are just being an annoying brat who needs some direction.
Just a theory, but it is worth considering.
Make sure you show your child love not in moments when they are frustrated and saying they hate you but during moments of relative calm. Love them by taking them for walks and showing them the neighbourhood. Love them by spending time with them, not buying things for them. I’ve seen too many parents give their kids whatever they want because they love their kids to no end. Except those same kids are the ones that feel entitled to everything and are upset when they don’t get what they want. You may decide to buy things for them but don’t ever confuse a child by showing them your love through material gifts.
The kids I see better adjusted, who even though their parents have the money, those parents chose to not buy them whatever they wanted. They received occasional presents and small nick nacks but they weren’t the ones coming into class on Monday saying their parents bought them the latest Nintendo DS.