I agree with the others that think this was bad advice -- that was my first reaction. As a former Engineering Manager, I can tell you that if someone found out that you were planning on quitting within a year you WOULD NOT be hired at any company that I have worked for. My advice is don't volunteer any information that isn't necessary (i.e. that you are just taking the job while waiting to get accepted to Medical School.)
While what QoQ says is absolutely true (that you DON'T want to go around burning bridges) I don't think that that's what you would be doing by not volunteering the information, and then just quitting (with appropriate 2 weeks notice) a year later. Depending upon the relationship that you have with your supervisor, they may well support you in your decision (by writing a LOR, etc.) Personally, if a good employee came to me, gave me his/her 2 weeks notice, said they were going to Medical School, and that was what they really wanted to do, I would wish them the best of luck and ask if there was anything I could do to help. Life, in general, is about the relationships that you cultivate with the people around you. So, while I agree that you don't want to take a "I'm sticking to the man" attitude, there's no need to volunteer any extra information. Just take the job, do your best work, treat your supervisor with respect when you DO resign, and everything will be cool (i.e. you won't be burning bridges.)
In the end, though, you DO need to look out for YOURSELF and your own goals, and don't worry too much about burning bridges. You SHOULDN'T burn bridges, if at all possible, but if you have to choose between what's best for you and your ultimate goals, or pissing someone else off, you have to do what you have to do.
Good Luck,
Jota