I just went through this thread. I see that it was started in November 2012.
I have a mid-2012 MacBook Pro that is on Yosemite 10.10.4. I have owned my MBP since 2013 and I used it mostly on battery power. Throughout that time, on the rare occasions that I left it plugged for over four hours, my MBP would go into hibernation mode, but I thought this was a normal occurrence on all Macs.
For the past month, I have been leaving my MBP plugged in all the time (found out this was okay to do, and it also helps keep battery "cycle count" from moving up there), and each time it's longer than four hours, my MBP did go into hibernation mode. EACH TIME. It started to really annoy me and I looked everywhere in Sys Pref to turn it off, but there is bare minimal settings options under Power.
After scouring the web to get information on the point of hibernation mode and if there were any benefits doing so, I find that it's an EU power saving directive. Okay, I live in Canada, not in the EU. I tried this code that I found on the Ask Different website: sudo pmset -a autopoweroff 0
This morning when I opened the lid and my MBP wasn't in hibernation mode. Finally. Apple should have a setting in Sys Pref under Power to turn hibernation mode off, and I shouldn't have to use a terminal code.