[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...

Gavin King gavin.king at jboss.com
Sun Jun 17 23:36:41 EDT 2007


  User: gavin   
  Date: 07/06/17 23:36:41

  Modified:    src/main/org/jboss/seam/core  ManagedPersistenceContext.java
  Log:
  better if jpa is hibernate
  
  Revision  Changes    Path
  1.47      +5 -1      jboss-seam/src/main/org/jboss/seam/core/ManagedPersistenceContext.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ManagedPersistenceContext.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/ManagedPersistenceContext.java,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -b -r1.46 -r1.47
  --- ManagedPersistenceContext.java	18 Jun 2007 03:28:53 -0000	1.46
  +++ ManagedPersistenceContext.java	18 Jun 2007 03:36:41 -0000	1.47
  @@ -1,4 +1,4 @@
  -//$Id: ManagedPersistenceContext.java,v 1.46 2007/06/18 03:28:53 gavin Exp $
  +//$Id: ManagedPersistenceContext.java,v 1.47 2007/06/18 03:36:41 gavin Exp $
   package org.jboss.seam.core;
   
   import static org.jboss.seam.InterceptionType.NEVER;
  @@ -117,6 +117,10 @@
               transactionListener.registerSynchronization(this);
               synchronizationRegistered = true;
            }
  +         else
  +         {
  +            synchronizationRegistered = PersistenceProvider.instance().registerSynchronization(this, entityManager);
  +         }
         }
         
         return entityManager;
  
  
  



More information about the jboss-cvs-commits mailing list