Author: pete.muir(a)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;
}
Show replies by date