Skip to content

clarify/loosen syntax for enum literals #77

@gavinking

Description

@gavinking

I'm not very sure about this, but I believe that strictly-speaking JPQL requires that enum value literals be fully-qualified names, which is very ugly.

But since they're constrained to occur on the RHS of a comparison, it's possible to infer the enum type, and let people write only the name of the enum value, for example, day <> MONDAY. I think the spec should bless that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions