All Pokemon will have the ID of the game that it was spawned in. Thus, the offspring will have the ID of the trainer who bred the Pokemon.
Hope I helped. :)