[hibernate-commits] Hibernate SVN: r11220 - branches/Branch_3_2/HibernateExt/annotations/src/java/org/hibernate/cfg/annotations/reflection.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue Feb 20 14:29:20 EST 2007


Author: epbernard
Date: 2007-02-20 14:29:20 -0500 (Tue, 20 Feb 2007)
New Revision: 11220

Modified:
   branches/Branch_3_2/HibernateExt/annotations/src/java/org/hibernate/cfg/annotations/reflection/EJB3OverridenAnnotationReader.java
Log:
Ignore primitive classes when checking for orphan properties

Modified: branches/Branch_3_2/HibernateExt/annotations/src/java/org/hibernate/cfg/annotations/reflection/EJB3OverridenAnnotationReader.java
===================================================================
--- branches/Branch_3_2/HibernateExt/annotations/src/java/org/hibernate/cfg/annotations/reflection/EJB3OverridenAnnotationReader.java	2007-02-19 19:43:25 UTC (rev 11219)
+++ branches/Branch_3_2/HibernateExt/annotations/src/java/org/hibernate/cfg/annotations/reflection/EJB3OverridenAnnotationReader.java	2007-02-20 19:29:20 UTC (rev 11220)
@@ -369,7 +369,7 @@
 			clazz = ReflectHelper.classForName( className, this.getClass() );
 		}
 		catch (ClassNotFoundException e) {
-			throw new AssertionFailure("Unable to load class " + className );
+			return; //a primitive type most likely
 		}
 		Element element = tree != null ? tree.element( "attributes" ) : null;
 		//put entity.attributes elements




More information about the hibernate-commits mailing list