Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The 7905 regulator can only regulate a negative power supply, it can not generate -5 from +5, you can connect it in the gnd side having as reference the positive line (you also need more than 5v because of the voltage drop) but this is still using the first way you have described in which you reverse the positive line with the gnd, this is not true -5v with respect to the gnd.