Cuba 7.2.20 : updatedBy field not populated on creation while in @Composition


It appears that updatedBy field is not populated on creation when entity is target of a @Composition, despite updateTs field being populated (with createTs).

One would expect that updatedBy field is populated with value of createdBy on creation like any other entities.

How to reproduce.

ProductSellConditions {

Product {

    ProductSellConditions productSellConditions;

    public void postConstruct(Metadata metadata) {

When persisting a new Product instance, Product will have updatedBy field populated while ProductSellConditions will not.

It’s no big deal but I wonder if this is on purpose.