| OK, I think I figured out what is happening. It does appear to be a bug. I have a superclass...
and a subclass:
When I change the subclass to this, it works:
So it seems the but is that the criteria API is simply failing to add some required parentheses around the generated JPQL comparison when constructing a comparison between two values. |