Class RaceMapper
java.lang.Object
com.endurancetrio.business.event.mapper.RaceMapper
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RaceMapper
public RaceMapper()
-
-
Method Details
-
map
- Parameters:
entity- the Race entity to be mapped- Returns:
- the corresponding RaceDTO, or
nullif the entity isnull
-
mapWithEvent
Maps aRaceentity to aRaceDTOincluding the parentEventdata.Unlike
map(Race), this method navigates through the race's courses to populate theRaceDTO.event()field with the associatedEventinformation.- Parameters:
entity- the Race entity to be mapped- Returns:
- the corresponding RaceDTO with event data, or
nullif the entity is null
-