I have a package in SQL Developer that I created. In the body of this package I have multiple procedures. Last week I noticed that when I opened the body and went to one of my procedures I noticed that the new code I had put in was gone and the procedure was back to where it was a few days earlier. I understand how to save the package by itself and not to Save All because I don't want to save all the stuff I have open, I just want to save the work I have recently done. I brushed this off to a possible oversight on my end and got the code back to where it was before I lost my new code.
Now, I work with a guy who has recently been working on another package, in the list with my packages. I went to his desk today and noticed he was still working on modifying an existing package and he had a question that I helped him with. He ended up compiling his code and it worked. I went back to my desk and opened my package that I had finished and was testing. I noticed that I was back to the point I was at the first time I lost my code, about a weeks worth of work....AGAIN!!! Since this guy starting modifying his package I have had these problems. I have a feeling this guy is accidentally overwriting my code somehow. I think the version on his computer is what I keep going back to when Im overwritten. I am only speculating here and I haven't blamed anyone and since the first problem I had, I save my code to notepad, just in case and thank the lord for that because I have about 99% of the code so Im not worried about the code, Im worried about this happening again. Also, when I asked the guy if he is looking at my code and maybe doing a Save All accidentally but he is not the type of guy to admit he did anything wrong. His only response was that I should save my work locally and all this other stuff. That's when I started to really suspect him. Hes known never to admit fault and will talk in circles until you just are sick of listening, never making the point or admitting anything. Ive seen it happen many times and I just started there last month. My boss actually said when I got overwritten the first time that it may have been him, because he is very green and he had just started working with a package and then we discussed possible version control. I thought it was me so I started being extra careful and saving my code just in case.
My question is....Is there any way I can find out, maybe a log file or something, when and who may have done the last save to my package? Next, is there a version control that I can easily set up so I don't have this issue again?
Once again, not blaming anyone I just want to stop losing my work.