Author: pete.muir(a)jboss.org
Date: 2009-03-27 08:35:49 -0400 (Fri, 27 Mar 2009)
New Revision: 2224
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/BeanDeployer.java
Log:
account for jpa services not being specified
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/BeanDeployer.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/BeanDeployer.java 2009-03-27
11:16:11 UTC (rev 2223)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/BeanDeployer.java 2009-03-27
12:35:49 UTC (rev 2224)
@@ -261,7 +261,7 @@
!ejbApiAbstraction.ENTERPRISE_BEAN_CLASS.isAssignableFrom(rawType)
&&
!jsfApiAbstraction.UICOMPONENT_CLASS.isAssignableFrom(rawType) &&
hasSimpleWebBeanConstructor(clazz)
- &&
!manager.getServices().get(JpaServices.class).discoverEntities().contains(clazz.getRawType());
+ && manager.getServices().contains(JpaServices.class) ?
!manager.getServices().get(JpaServices.class).discoverEntities().contains(clazz.getRawType())
: true;
}
private static boolean hasSimpleWebBeanConstructor(AnnotatedClass<?> type)
Show replies by date