jmix
jmix copied to clipboard
Collection attributes incorrectly marked as changed in EntityChangedEvent
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
Looks like a duplicate of https://github.com/jmix-framework/jmix/issues/3919