Actually not much different than in the corporate or political world.
Young woman need to realize that just goes with the sexes working together and they need to develop professional ways to discourage the behavior. Guys aren’t stupid they get it when you handle it right. I’ve had to do so throughout my career , the key is keep it professional.
Except she was only 20.
In the corporate world, sure. But in the military you can’t just resign, and, this was a impressionable young person far junior in rank. Her superiors had a duty of care to set the example and not cave to impulse, and they failed her.