Interface ReactionMapper


public interface ReactionMapper
Maps between reaction entities and DTOs using MapStruct.
  • Method Summary

    Modifier and Type
    Method
    Description
    toReactionDTO(ReactionEntity reactionEntity)
    Converts a reaction entity to a reaction DTO.
  • Method Details

    • toReactionDTO

      ReactionDTO toReactionDTO(ReactionEntity reactionEntity)
      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