...
In order for an entity to be considered collectionencountered as a collection by Conditional Security Restrictions, Audit Trail, and Mandatory Fields mechanisms, it has to meet the following conditions:
...
- Implement ICRMDOCollectionEntity interface and its methods getMainEntity().
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
public class CUSTOMCRMDORentalItem extends CRMDO implements ICRMDOCollectionEntity{ private CUSTOMCRMDORental rental; private CRMDOInstalledItem installedItem; private Set<CUSTOMCRMDORentalItemUsage> usagePeriods; public CUSTOMCRMDORental getRental() { return rental; } public void setRental(CUSTOMCRMDORental rental) { setChange("rental", this.rental, rental); this.rental = rental; } public CRMDOInstalledItem getInstalledItem() { return installedItem; } public void setInstalledItem(CRMDOInstalledItem installedItem) { setChange("installedItem", this.installedItem, installedItem); this.installedItem = installedItem; } public Set<CUSTOMCRMDORentalItemUsage> getUsagePeriods() { return usagePeriods; } public void setUsagePeriods(Set<CUSTOMCRMDORentalItemUsage> usagePeriods) { setChange("usagePeriods", this.usagePeriods, usagePeriods); this.usagePeriods = usagePeriods; } @Override public CRMDO getMainEntity() { return rental; } } |