Skip to content

jmix-create-enum: state that extra constant state is invisible to the metamodel - #132

Merged
knstvk merged 2 commits into
v3from
feedback/130-enum-extra-state
Sep 16, 2026
Merged

knstvk merged 2 commits into
v3from
feedback/130-enum-extra-state

Conversation

@glebfox

@glebfox glebfox commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Fixes #130.

Drafted from a field report while the problem was fresh, by the agent that hit it. It is unreviewed: treat the wording as a starting point, not a proposal to merge as-is.

Change

Adds a note under the Enum Template saying that an EnumClass constant may carry constructor arguments and accessors beyond the stable id, that they are invisible to the metamodel (an enum is not a @JmixEntity; the enumeration datatype reads only getEnumConstants() and getId()) and therefore owe no message key, and that only the stable id is ever persisted.

@knstvk
knstvk marked this pull request as ready for review September 16, 2026 13:07
@knstvk
knstvk merged commit 6bcf853 into v3 Sep 16, 2026
@knstvk
knstvk deleted the feedback/130-enum-extra-state branch September 16, 2026 13:07
knstvk pushed a commit that referenced this pull request Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

jmix-create-enum: silent on whether an EnumClass may carry state beyond its id

2 participants