Strangers making rude comments

Is anyone else getting rude comments from people you hardly know? I've had multiple people see that I'm obviously pregnant and the first thing they say is "are you married?" 
I had one woman tell me "I hope you have someone there to help you, you are going to need it" and the worst one of all "do you know who the father is?" WHAT THE F***? All of these have came from people who come into my workplace. I work at a homeowners association. Is so hard to put on a nice face when these people are saying things like this. Is this happening to anyone else??