Class TeamMapper
java.lang.Object
com.endurancetrio.business.competitor.mapper.TeamMapper
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TeamMapper
public TeamMapper()
-
-
Method Details
-
map
Maps aTeamentity to aTeamDTO.If the entity is
null, a customteamNamemay be provided for display purposes when no formal team record exists in the database.- Parameters:
entity- the Team entity to map; may be nullteamName- the team name to use when the entity is null; may be null- Returns:
- the corresponding TeamDTO, or
nullif the entity isnull
-