class EventMapper {

    public abstract EventApiEntity toApiEntity(Event domainEntity)@Mappings({
            @Mapping(source = "domainEntity.handicapGroupSet.id", target = "handicapGroupSetId"),
            @Mapping(source = "domainEntity.competitionGroupSet.id", target = "competitionGroupSetId")
    })
    public abstract EventApiEntity toApiEntity(Event domainEntity);

}