class RegistrationMapper {

    public abstract RegistrationApiEntity toApiEntity(Registration domainEntity)@Mappings({
            @Mapping(source = "domainEntity.handicapGroup.id", target = "handicapGroupId"),
            @Mapping(source = "domainEntity.competitionGroup.id", target = "competitionGroupId")
    })
    public abstract RegistrationApiEntity toApiEntity(Registration domainEntity);

}