For example, I trade a Zangoose from Black 2 to Omega Ruby using the PokeBank. The OT (original trainer name), ID and Secret ID on both games are exactly the same, which, under normal circumstances, would have the Zangoose act like a Pokemon I caught on my own, obeying every command and not gaining extra EXP. However, there is a generation gap, the game will say that it came from Unova. Will the Zangoose get the boosted EXP and act as an outsider Pokemon, or will it act like I never transferred it in the first place and obey my every command if I'm missing badges?
This can be asked about any trading between any generation, like gen 1 to gen 2, gen 3 to gen 4, gen 4 to gen 5, etc.
(Yes I know the chances of this happening are slim to none, I'm still curious.)