support for enums in HQL is flakey

Description

Both the following queries result in errors:

select test.hql.Sex.FEMALE from Person

from Person p where test.hql.Sex.MALE = test.hql.Sex.FEMALE

Both are well-formed AFAICT.

Environment

None

Assignee

Unassigned

Reporter

Gavin King

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Priority

Major
Configure