[hibernate-commits] Hibernate SVN: r18103 - core/trunk/annotations/src/main/java/org/hibernate/cfg.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Nov 30 11:50:25 EST 2009


Author: epbernard
Date: 2009-11-30 11:50:25 -0500 (Mon, 30 Nov 2009)
New Revision: 18103

Modified:
   core/trunk/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java
Log:
minor doc enhancement

Modified: core/trunk/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java
===================================================================
--- core/trunk/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java	2009-11-30 15:59:09 UTC (rev 18102)
+++ core/trunk/annotations/src/main/java/org/hibernate/cfg/AnnotationBinder.java	2009-11-30 16:50:25 UTC (rev 18103)
@@ -889,6 +889,7 @@
 					null;
 		}
 		else {
+			//the are the root entity but we might have mapped superclasses that contain the id class
 			AccessType access = clazzToProcess.getAnnotation( AccessType.class );
 			explicitAccessType = access != null ?
 					access.value() :
@@ -926,7 +927,6 @@
 			exceptionWhileWalkingElements = e;
 		}
 
-		//TODO remember why it should be !inheritanceState.hasParents
 		if ( !hasIdentifier && !inheritanceState.hasParents ) {
 			if ( isExplicitPropertyAnnotated != null ) {
 				//the original exception is legitimate



More information about the hibernate-commits mailing list