I'm not very sure about this, but I believe that strictly-speaking JPQL requires that enum value literals be fully-qualified names, which is very ugly.
But since they're constrained to occur on the RHS of a comparison, it's possible to infer the enum type, and let people write only the name of the enum value, for example, day <> MONDAY. I think the spec should bless that.