Search in sources :

Example 6 with AcaoDTO

use of com.tomasio.projects.trainning.dto.AcaoDTO in project trainning by fernandotomasio.

the class Acao method createDTOMinimal.

@Override
public AcaoDTO createDTOMinimal() {
    SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy HH:mm");
    AcaoDTO dto = new AcaoDTO();
    dto.setId(id);
    dto.setDataCriacao(dataCriacao);
    if (dataCriacao != null) {
        dto.setDataCriacaoFormatted(df.format(dataCriacao));
    }
    dto.setTexto(texto);
    dto.setUser(user);
    dto.setResponsavel(responsavel);
    dto.setPrazo(prazo);
    return dto;
}
Also used : AcaoDTO(com.tomasio.projects.trainning.dto.AcaoDTO) SimpleDateFormat(java.text.SimpleDateFormat)

Aggregations

AcaoDTO (com.tomasio.projects.trainning.dto.AcaoDTO)6 DecisaoDTO (com.tomasio.projects.trainning.dto.DecisaoDTO)5 ComentarioDTO (com.tomasio.projects.trainning.dto.ComentarioDTO)4 ItemAtaDTO (com.tomasio.projects.trainning.dto.ItemAtaDTO)3 DAOException (com.tomasio.projects.trainning.exception.DAOException)2 CoreException (com.tomasio.projects.trainning.exeption.CoreException)2 Acao (com.tomasio.projects.trainning.model.Acao)2 Comentario (com.tomasio.projects.trainning.model.Comentario)2 Decisao (com.tomasio.projects.trainning.model.Decisao)2 ItemAta (com.tomasio.projects.trainning.model.ItemAta)2 ArrayList (java.util.ArrayList)2 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)2 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)2 ItemAtaDAO (com.tomasio.projects.trainning.dao.ItemAtaDAO)1 AnaliseDTO (com.tomasio.projects.trainning.dto.AnaliseDTO)1 AreaDTO (com.tomasio.projects.trainning.dto.AreaDTO)1 ItemPlanejamentoDTO (com.tomasio.projects.trainning.dto.ItemPlanejamentoDTO)1 PlanejamentoDTO (com.tomasio.projects.trainning.dto.PlanejamentoDTO)1 ResponsavelAreaDTO (com.tomasio.projects.trainning.dto.ResponsavelAreaDTO)1 StripItemPlanejamentoDTO (com.tomasio.projects.trainning.dto.StripItemPlanejamentoDTO)1