There are only two ways people learn to treat you:
1- What you teach them
2- What they get by with
If you don't like the way someone is treating you, ask yourself what you have—or have not—taught them. For example, You can ask some people to stop calling you a name you don't like. If they stop calling you that name, then you have taught them your preference and have relieved your pain. Note that you might have to teach the lesson more than once for it to take hold.
If they don't stop, then you can consider: is it because they are unable to stop, or are they unwilling to stop? In either case, you can decide to put up with the name calling, or you can decide to distance yourself from these people, or you can decide to completely end your relationship or engage other options depending on how upset you are.
Here are questions to consider:
How do you want to be treated, or what do you want to change?
How will others have to change for you to be treated better?
How likely are others to cooperate with your request for change?
What amount of risk are you willing to take—could you lose a friend, a job or something important to you?What will you say and do to politely teach others your preferences?
You might want to do the Clean Sweep Program. This 100-item checklist has helped thousands of people eliminate what they tolerate and create the life and relationships they really want. Find the Clean Sweep at http://www.mackarrington.com/goodies.htm —about half way down the page in the Program section. Let me know your score from your first pass, I bet you get at least 10 points.