private EntityManager em;
- public final void refresh(SessaoUsuario sessaoUsuario, Paciente paciente) throws Exception {
+ public final void refresh(SessaoUsuario sessaoUsuario, Paciente paciente, EntityManager em) throws Exception {
// Inicializa Valores
perguntasRealizadas = perguntasDisponiveis = perguntasProfessor = perguntasBogusRealizadas =
nodosInvestigacao = new ArrayList<Nodo>();
- em = DbUtil.getInstance().getEntityManager();
+ //em = DbUtil.getInstance().getEntityManager();
Iterator<Log> itLog = em.createQuery("From Log where sessaoUsuario.id=:pIDSessao order by data")
.setParameter("pIDSessao", sessaoUsuario.getId())
}
}
- public LogExecucao(SessaoUsuario sessaoUsuario, Paciente paciente) throws Exception {
- refresh(sessaoUsuario, paciente);
+ public LogExecucao(SessaoUsuario sessaoUsuario, Paciente paciente, EntityManager em) throws Exception {
+ refresh(sessaoUsuario, paciente, em);
}
public boolean isAbriuFichaPaciente() {