Search in sources :

Example 11 with ItemAtaDTO

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

the class AtaServiceSimpleImpl method findItemAta.

@Override
@Transactional(readOnly = true)
public ItemAtaDTO findItemAta(Long id) {
    ItemAtaDAO dao = factory.getItemAtaDAO();
    ItemAtaDTO itemAta = null;
    try {
        itemAta = dao.find(id);
    } catch (DAOException ex) {
        throw new CoreException("Erro de de acesso ao banco de dados: " + ex.getMessage());
    }
    return itemAta;
}
Also used : DAOException(com.tomasio.projects.trainning.exception.DAOException) CoreException(com.tomasio.projects.trainning.exeption.CoreException) ItemAtaDTO(com.tomasio.projects.trainning.dto.ItemAtaDTO) ItemAtaDAO(com.tomasio.projects.trainning.dao.ItemAtaDAO) Transactional(org.springframework.transaction.annotation.Transactional)

Aggregations

ItemAtaDTO (com.tomasio.projects.trainning.dto.ItemAtaDTO)11 DAOException (com.tomasio.projects.trainning.exception.DAOException)7 CoreException (com.tomasio.projects.trainning.exeption.CoreException)5 ArrayList (java.util.ArrayList)5 ItemAtaDAO (com.tomasio.projects.trainning.dao.ItemAtaDAO)4 Transactional (org.springframework.transaction.annotation.Transactional)4 AcaoDTO (com.tomasio.projects.trainning.dto.AcaoDTO)3 DecisaoDTO (com.tomasio.projects.trainning.dto.DecisaoDTO)3 ItemAta (com.tomasio.projects.trainning.model.ItemAta)3 HibernateException (org.hibernate.HibernateException)3 Session (org.hibernate.Session)3 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)3 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)3 ComentarioDTO (com.tomasio.projects.trainning.dto.ComentarioDTO)2 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