For an inner class you have to give the complete simple name, which includes the containing class name. E.g. for the following:
package com.acme;
class Outer {
...
public static enum Inner {
TYPE1,
...
}
}
You'd use SELECT e FROM Entity e WHERE e.type = Outer$Inner.TYPE1 (or Outer.Inner.TYPE1, I always forget). |