Earlier today when I was working on a project I took a look at one of my entity beans and it had all sorts of errors in it. Seeing as how I had Eclipse create these for me and I didn’t edit the code or the database at all, I was a bit confused. When I looked at the project file listings I noticed that Eclipse said all of the beans had compile errors in them.

Naturally I restarted Eclipse to see if that would help, nope. I then went to Project > Clean and selected my EJB project, sure enough, all the errors when away.

Eclipse is a wonderful tool, but even the best tools have their moments.