Hi all,
I am trying to add a BusinessPartner field to the user entity. The BusinessPartner field is related to a BusinessPartner entity from a custom datastore. I followed this guide
On completion, the following were added to the user entity
@SystemLevel
@Column(name = “BUSINESS_PARTNER_ID”, length = 50)
private String businessPartnerId;@SystemLevel
@Column(name = “BUSINESS_PARTNER_ID”, length = 50)
private String businessPartnerId;@DependsOnProperties({"businessPartnerId"}) @JmixProperty @Transient private BusinessPartner businessPartner;
The user-edit page is displaying the businesspartner data from the custom datastore properly
It saves the user correctly with the related businesspartnerID. When I check the user table, everything is fine. The problem I am having is that it also attempts to save all the records from the businesspartners at the same time to the custom datastore.
How can I exclude businesspartner from the fetch plan while saving. I don’t want it to save to the custom datastore. It should only save user entity. As a result of this, an error pops up when it attempts to save 27 records of the businesspartners to the custom datastore.
Hope I am able to explain myself properly.
Thanks in advance.