[seam-commits] Seam SVN: r7826 - branches/Seam_2_0/src/main/org/jboss/seam/persistence.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Apr 7 08:33:12 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-04-07 08:33:11 -0400 (Mon, 07 Apr 2008)
New Revision: 7826

Modified:
   branches/Seam_2_0/src/main/org/jboss/seam/persistence/HibernatePersistenceProvider.java
Log:
Wrong way around if using hibernate only

Modified: branches/Seam_2_0/src/main/org/jboss/seam/persistence/HibernatePersistenceProvider.java
===================================================================
--- branches/Seam_2_0/src/main/org/jboss/seam/persistence/HibernatePersistenceProvider.java	2008-04-07 12:32:41 UTC (rev 7825)
+++ branches/Seam_2_0/src/main/org/jboss/seam/persistence/HibernatePersistenceProvider.java	2008-04-07 12:33:11 UTC (rev 7826)
@@ -318,10 +318,10 @@
    
    public static Class getEntityClass(Object bean)
    {
-      Class clazz = Entity.forBean(bean).getBeanClass();
+      Class clazz = Hibernate.getClass(bean);
       if (clazz == null)
       {
-         clazz = Hibernate.getClass(bean);
+         clazz = Entity.forBean(bean).getBeanClass();
       }
       return clazz;
    }




More information about the seam-commits mailing list