Because multiple profile properties, such as defaultBilling
, defaultShipping
and secondaryAddresses
, can reference the same address item, Commerce Service Center supports cascade-delete
data relationships.
For example, you want to move the default billing address to the secondaryAddress
, and the defaultBilling
property specifies cascade="delete"
in the repository definition file. When you change the default billing address item in the customer profile, the current default address item is copied to the secondaryAddress
map before being deleted from the defaultBilling
property. To disable the automatic copying of addresses, set cascade-delete
property to false
.
For detailed information on repository data relationship and cascade-delete
, refer to the ATG Repository Guide.