All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.hyperfoil.tools.horreum.mapper.ReportCommentMapper Maven / Gradle / Ivy

There is a newer version: 0.15.3
Show newest version
package io.hyperfoil.tools.horreum.mapper;

import io.hyperfoil.tools.horreum.api.report.ReportComment;
import io.hyperfoil.tools.horreum.entity.report.ReportCommentDAO;

public class ReportCommentMapper {
    public static ReportComment from(ReportCommentDAO rc) {
        ReportComment dto = new ReportComment();
        dto.id = rc.id;
        dto.comment = rc.comment;
        dto.category = rc.category;
        dto.componentId = rc.componentId;
        dto.level = rc.level;

        return dto;
    }

    public static ReportCommentDAO to(ReportComment dto) {
        ReportCommentDAO rc = new ReportCommentDAO();
        rc.id = dto.id;
        rc.comment = dto.comment;
        rc.category = dto.category;
        rc.componentId = dto.componentId;
        rc.level = dto.level;

        return rc;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy