Why do you characterize that as "fictitious"?
Jackson's relationship with Janie Corbin during the winter of 1862-63 is well known to Jackson historians.
I've never seen it mentioned in any Jackson biographies, but even if it is a true story, the movie's telling of the tale was rather hokey and certainly lacked context (eg. far more Civil War soldiers being killed by disease than in battle).