Correção do processo de exclusão de casos.
authormaroni <maroni@192.168.1.103>
Mon, 28 May 2012 13:07:18 +0000 (10:07 -0300)
committermaroni <maroni@192.168.1.103>
Mon, 28 May 2012 13:07:18 +0000 (10:07 -0300)
src/java/org/ufcspa/simdecs/mb/editarcasos/SelecioneCasoBean.java
web/login.xhtml

index 19b38d8..a66a032 100644 (file)
@@ -115,6 +115,14 @@ public class SelecioneCasoBean extends DefaultManagedBean {
         
         beginTransaction();
 
+        em.createQuery("Delete From LogPerguntas Where sessaoUsuario.caso.id=:pIDCaso")
+          .setParameter("pIDCaso", id)
+          .executeUpdate();
+
+        em.createQuery("Delete From IntervencaoPedagogica Where sessaoUsuario.caso.id=:pIDCaso")
+          .setParameter("pIDCaso", id)
+          .executeUpdate();
+
         em.createQuery("Delete From NodoPaciente Where paciente.id in (Select id from Paciente where caso.id=:pIDCaso)")
           .setParameter("pIDCaso", id)
           .executeUpdate();
@@ -123,7 +131,6 @@ public class SelecioneCasoBean extends DefaultManagedBean {
           .setParameter("pIDCaso", id)
           .executeUpdate();
 
-
         em.createQuery("Delete From Log Where caso.id=:pIDCaso")
           .setParameter("pIDCaso", id)
           .executeUpdate();
index 4864fe6..dbb253c 100644 (file)
@@ -35,7 +35,7 @@
             <a href="simulador/index.html">Acesso ao Simulador</a>
             <br/>
             <br/>
-            <h:outputText value="Versão 4.0.8" />
+            <h:outputText value="Versão 4.0.9" />
         </center>
     </h:body>
 </html>