Dear Mendix Team,
There is an issue with updating system attributes (changedDate, changedBy etc) if an object was committed in Java action and generated setter was used to change entity field.
For instance, I have entity called "Item" in domain model, which has all system attributes and integer attribute called "Price". In custom Java action I use setPrice method to change the price:
final Item item = Microflows.getItemByName(getContext(), name);
After committing this object the changedDate is not updated.
I noticed that Core.change can be used to set attributes and it also updates system attributes after commit, but it is not handy, badly documented and non-intuitive.
Isn’t this a bug instead of an idea? I just filed an incident for this to get it addressed as a bug.
It would be indeed very convenient to have this feature.
This feature is quite crucial to have.