[seam-commits] Seam SVN: r7984 - branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/converter/entityConverter.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sun Apr 20 13:23:44 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-04-20 13:23:43 -0400 (Sun, 20 Apr 2008)
New Revision: 7984

Modified:
   branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/converter/entityConverter/EntityLoader.java
   branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/converter/entityConverter/HibernateEntityLoader.java
Log:
Implement isPersistenceContextOpen

Modified: branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/converter/entityConverter/EntityLoader.java
===================================================================
--- branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/converter/entityConverter/EntityLoader.java	2008-04-19 00:31:21 UTC (rev 7983)
+++ branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/converter/entityConverter/EntityLoader.java	2008-04-20 17:23:43 UTC (rev 7984)
@@ -50,4 +50,10 @@
    {
       return (EntityLoader) Component.getInstance(EntityLoader.class, STATELESS);
    }
+   
+   @Override
+   protected boolean isPersistenceContextOpen(EntityManager persistenceContext)
+   {
+      return persistenceContext.isOpen();
+   }
 }

Modified: branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/converter/entityConverter/HibernateEntityLoader.java
===================================================================
--- branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/converter/entityConverter/HibernateEntityLoader.java	2008-04-19 00:31:21 UTC (rev 7983)
+++ branches/Seam_2_0/ui/src/main/java/org/jboss/seam/ui/converter/entityConverter/HibernateEntityLoader.java	2008-04-20 17:23:43 UTC (rev 7984)
@@ -49,4 +49,11 @@
    {
       return (HibernateEntityLoader) Component.getInstance(HibernateEntityLoader.class, STATELESS);
    }
+   
+   @Override
+   protected boolean isPersistenceContextOpen(Session persistenceContext)
+   {
+      return persistenceContext.isOpen();
+   }
+   
 }




More information about the seam-commits mailing list