jmix icon indicating copy to clipboard operation
jmix copied to clipboard

Collection attributes incorrectly marked as changed in EntityChangedEvent

Open Gasloff opened this issue 2 months ago • 1 comments

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

Gasloff avatar Nov 27 '25 14:11 Gasloff

Looks like a duplicate of https://github.com/jmix-framework/jmix/issues/3919

dtaimanov avatar Nov 28 '25 10:11 dtaimanov