Ginny Weasley had three boyfriends during her Hogwarts years.
First was Micheal Corner in her 4th year. Second was Dean Thomas in her 5th year. She left him in her fifth year itself as Harry Potter whom she had a crush on for years was reciprocating her love.
Hence they stared dating and eventually married at some point after Voldemort's death and had three children- Albus Severus, James Sirius and Lily Luna Potter