I've had several dreams of someone i had an affair with in the past were he hugs me really tight and tells me he loves so much but i know it could never be. Whats funny is that he hugs me just as tight as the last time i was with him. when i wake up i feel like if it had really happened.
These dreams are probably just your unconscious replaying memories of what has happened or thinking about what could happen. If the dreams feel good, they could also be a way for your unconscious to cheer you up when you are feeling bad about other things.