From: maroni Date: Wed, 14 Mar 2012 02:57:49 +0000 (-0300) Subject: (no commit message) X-Git-Url: http://200.18.67.61/gitweb/?a=commitdiff_plain;h=53addb407d6f88902a98f8d12e775d28589493a9;p=simdecs2.git --- diff --git a/src/java/org/ufcspa/simdecs/comunicacao/MetodoIniciaCaso.java b/src/java/org/ufcspa/simdecs/comunicacao/MetodoIniciaCaso.java index aa696d1..8798c5d 100644 --- a/src/java/org/ufcspa/simdecs/comunicacao/MetodoIniciaCaso.java +++ b/src/java/org/ufcspa/simdecs/comunicacao/MetodoIniciaCaso.java @@ -62,6 +62,7 @@ public class MetodoIniciaCaso extends HttpServlet { sessaoUsuario.setData(new Date()); sessaoUsuario.setCaso(caso); em.persist(sessaoUsuario); + em.flush(); // Logo inicio do caso Log log = new Log();