I remember this happening at Delta a while ago. I believe the solution was for the pilots (mostly 777 drivers, I believe) to retire but get hired back on a contract basis until the new crews could be trained.
Anyone closer to the source please correct me on this.