EventParticipantMapperImpl.java
package org.petify.feed.mapper;
import java.time.LocalDateTime;
import javax.annotation.processing.Generated;
import org.petify.feed.dto.EventParticipantResponse;
import org.petify.feed.model.EventParticipant;
import org.springframework.stereotype.Component;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2025-06-26T07:25:31+0000",
comments = "version: 1.6.3, compiler: javac, environment: Java 21.0.7 (Oracle Corporation)"
)
@Component
public class EventParticipantMapperImpl implements EventParticipantMapper {
@Override
public EventParticipantResponse toDto(EventParticipant eventParticipant) {
if ( eventParticipant == null ) {
return null;
}
Long id = null;
Long eventId = null;
String username = null;
LocalDateTime createdAt = null;
id = eventParticipant.getId();
eventId = eventParticipant.getEventId();
username = eventParticipant.getUsername();
createdAt = eventParticipant.getCreatedAt();
EventParticipantResponse eventParticipantResponse = new EventParticipantResponse( id, eventId, username, createdAt );
return eventParticipantResponse;
}
}