Class UserUserRelationMergeHandler

All Implemented Interfaces:
RelationMergeHandler

@Component public class UserUserRelationMergeHandler extends AbstractAddressAddressAndUserUserRelationMergeHandler
Custom
invalid reference
RelationMergeHandler
for User→User_user relations. This handler removes potential duplicates if multiple source users have a relation to the same user. This is necessary to avoid a validation error (see
invalid reference
EqualUserUserEntityExistsValidator
). 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.