Class EventMapper

java.lang.Object
com.endurancetrio.business.event.mapper.EventMapper

@Component public class EventMapper extends Object
  • Constructor Details

  • Method Details

    • mapToEventDTO

      public EventDTO mapToEventDTO(Event entity)
      Maps an Event entity to an EventDTO.
      Parameters:
      entity - the Event entity to be mapped
      Returns:
      the corresponding EventDTO, or null if the entity is null
    • mapToEventOverviewDTO

      public EventOverviewDTO mapToEventOverviewDTO(Event entity)
      Maps an Event entity to an EventOverviewDTO.
      Parameters:
      entity - the Event entity to be mapped
      Returns:
      the corresponding EventOverviewDTO, or null if the entity is null