Generate automatic mapping for parents