First we need to find out why there are repeated columns. That should not happen in the first place (unless you got some funky model and then it might be automatic generation of mappings is not possible).
So, why are there repeated columns ? whats your table / class layout?