use of com.tomasio.projects.trainning.model.ConviteInstrutorIndividual in project trainning by fernandotomasio.
the class AtividadesEnsinoServiceSimpleImpl method createConviteInstrutor.
@Override
@SuppressWarnings({ "BroadCatchBlock", "TooBroadCatch" })
@Transactional
public Long createConviteInstrutor(ConviteInstrutorDTO convite) {
ConviteInstrutorDAO dao = factory.getConviteInstrutorDAO();
ConviteInstrutor model = null;
if (convite instanceof ConviteInstrutorPerfilDTO) {
model = new ConviteInstrutorPerfil((ConviteInstrutorPerfilDTO) convite);
} else if (convite instanceof ConviteInstrutorIndividualDTO) {
model = new ConviteInstrutorIndividual((ConviteInstrutorIndividualDTO) convite);
}
return create(dao, model);
}
use of com.tomasio.projects.trainning.model.ConviteInstrutorIndividual in project trainning by fernandotomasio.
the class AtividadesEnsinoServiceSimpleImpl method updateConviteInstrutor.
@Override
@SuppressWarnings({ "BroadCatchBlock", "TooBroadCatch" })
@Transactional
public void updateConviteInstrutor(ConviteInstrutorDTO convite) {
ConviteInstrutorDAO dao = factory.getConviteInstrutorDAO();
ConviteInstrutor model = null;
if (convite instanceof ConviteInstrutorPerfilDTO) {
model = new ConviteInstrutorPerfil((ConviteInstrutorPerfilDTO) convite);
} else if (convite instanceof ConviteInstrutorIndividualDTO) {
model = new ConviteInstrutorIndividual((ConviteInstrutorIndividualDTO) convite);
}
update(dao, model);
}
Aggregations