For an aircraft with podded engines, normally they have some sort of attachment designed to let go of the engine if it really takes a hit... not that you'd want to try it, but I reckon the engines on (say) a 747 would soon detach once they encountered water, and that the sheer momentum of the fuselage and remaining clean wings would make a cartwheel very difficult.