Interface ReactionMapper
public interface ReactionMapper
Maps between reaction entities and DTOs using MapStruct.
-
Method Summary
Modifier and TypeMethodDescriptiontoReactionDTO(ReactionEntity reactionEntity) Converts a reaction entity to a reaction DTO.
-
Method Details
-
toReactionDTO
Converts a reaction entity to a reaction DTO. Maps nested user and post IDs to their respective DTO fields.- Parameters:
reactionEntity- the reaction entity to convert- Returns:
- reaction DTO with all fields populated
-