[hibernate-commits] Hibernate SVN: r11201 -	branches/Branch_3_2/HibernateExt/annotations/src/java/org/hibernate/cfg.
    hibernate-commits at lists.jboss.org 
    hibernate-commits at lists.jboss.org
       
    Tue Feb 13 17:48:55 EST 2007
    
    
  
Author: epbernard
Date: 2007-02-13 17:48:55 -0500 (Tue, 13 Feb 2007)
New Revision: 11201
Modified:
   branches/Branch_3_2/HibernateExt/annotations/src/java/org/hibernate/cfg/AnnotationBinder.java
Log:
ANN-252 inattentive user safety net
Modified: branches/Branch_3_2/HibernateExt/annotations/src/java/org/hibernate/cfg/AnnotationBinder.java
===================================================================
--- branches/Branch_3_2/HibernateExt/annotations/src/java/org/hibernate/cfg/AnnotationBinder.java	2007-02-13 22:20:24 UTC (rev 11200)
+++ branches/Branch_3_2/HibernateExt/annotations/src/java/org/hibernate/cfg/AnnotationBinder.java	2007-02-13 22:48:55 UTC (rev 11201)
@@ -380,6 +380,11 @@
 				|| AnnotatedClassType.NONE.equals( classType ) //to be ignored
 				|| AnnotatedClassType.EMBEDDABLE.equals( classType ) //allow embeddable element declaration
 				) {
+			if ( AnnotatedClassType.NONE.equals( classType )
+					&& clazzToProcess.isAnnotationPresent( org.hibernate.annotations.Entity.class ) ) {
+				log.warn("Class annotated @org.hibernate.annotations.Entity but not javax.persistence.Entity "
+						+ "(most likely a user error): " + clazzToProcess.getName() );
+			}
 			return;
 		}
 		if ( !classType.equals( AnnotatedClassType.ENTITY ) ) {
    
    
More information about the hibernate-commits
mailing list