|
From: <hib...@li...> - 2006-05-05 11:44:36
|
Author: max...@jb...
Date: 2006-05-05 07:44:34 -0400 (Fri, 05 May 2006)
New Revision: 9890
Modified:
trunk/Hibernate3/src/org/hibernate/mapping/PersistentClass.java
Log:
minor: more informative exception
Modified: trunk/Hibernate3/src/org/hibernate/mapping/PersistentClass.java
===================================================================
--- trunk/Hibernate3/src/org/hibernate/mapping/PersistentClass.java 2006-05-05 01:24:12 UTC (rev 9889)
+++ trunk/Hibernate3/src/org/hibernate/mapping/PersistentClass.java 2006-05-05 11:44:34 UTC (rev 9890)
@@ -411,7 +411,7 @@
while ( iter.hasNext() ) {
Property prop = (Property) iter.next();
if ( !names.add( prop.getName() ) ) {
- throw new MappingException( "duplicate property mapping: " + prop.getName() );
+ throw new MappingException( "Duplicate property mapping of " + prop.getName() + " found in " + getEntityName());
}
}
}
|