Skip to content

Collection attributes incorrectly marked as changed in EntityChangedEvent #4919

@Gasloff

Description

@Gasloff

Environment

Jmix version: 2.7.1

Bug Description

Collection attributes incorrectly marked as changed in EntityChangedEvent if @orderby annotation present on the attributes.
If annotations removed - no such problem.

Steps To Reproduce

Open attached project, edit only code attribute in Owner.detail view, save changes.
See output from com.example.changeevent.listener.OwnerEventListener

Current Behavior

oneToManyList, manyToManyList attributes listed in EntityChangedEvent#changes as changed

Output:
Changed attributes: code, oneToManyList, manyToManyList

Expected Behavior

Only changed attribute code listed in EntityChangedEvent#changes

Sample Project

change-event.zip

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions