I am using glassfish_v2_b58g - don't know to match this with 9.x version - sorry.
My Enums are defined in a @MappedSuperclass extended by two levels of derived
Writing my first JPQL queries I had problems to figure out how to use enum
literals. Finally I figured out that I a) need to specify fully-qualified names
and b) have to point to exactly the class defining the enum. Using the more
descriptive names of derived classes does not work and results in (sorry)
misleading error messages (although the toplink messages are very good in general).
Instead of writing:
"select o from SubClass o where o.attrib = packg.SubClass.Enum.Member"
I have to write:
"select o from SubClass o where o.attrib = packg.MappedSuperClass.Enum.Member"
Where I expected the Enums to be available in SubClass by enheritance too.
Maybe this could be done with a next version/release?
Thanks for this great product!