From 53addb407d6f88902a98f8d12e775d28589493a9 Mon Sep 17 00:00:00 2001 From: maroni Date: Tue, 13 Mar 2012 23:57:49 -0300 Subject: [PATCH] --- .../simdecs/comunicacao/MetodoIniciaCaso.java | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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(); -- 1.7.6.4