pass type mapper to aggregate root repository