Class AddressAddressRelationMergeHandler

All Implemented Interfaces:
RelationMergeHandler

@Component public class AddressAddressRelationMergeHandler extends AbstractAddressAddressAndUserUserRelationMergeHandler
Custom RelationMergeHandler for Address→Address_address relations. This handler removes potential duplicates if multiple source addresses have a relation to the same address. This is necessary to avoid a validation error (see EqualAddressAddressEntityExistsValidator). If there are duplicates it is important to remove the 'new' value and keep the existing one, because the validator uses a query to compare uniqueness.