Neither of the following queries work:
from EntityOfLists where org.hibernate.testing.orm.domain.gambit.EnumValue.THREE member of listOfEnums
from EntityOfLists where THREE member of listOfEnums
This was reported on SO here:https://stackoverflow.com/questions/76253700/setenum-attribute-in-jpql-query-returns-exception-at-runtime/76254650#76254650
(Ignore the original query in the post, which is wrong.)