It is actually dominance behaviour, do not let him do that. Dogs do this to their inferiors regardless of gender he is testing your boundaries. DOn't be mean but say no, push him off and establish that you are not having it. If you do not it can become a big problem later on.
RE: My Dog Wants To Have Sex,Guess with whom!