[hibernate-commits] Hibernate SVN: r17969 - core/branches/Branch_3_3/core/src/main/java/org/hibernate/cfg.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Thu Nov 12 23:27:35 EST 2009


Author: steve.ebersole at jboss.com
Date: 2009-11-12 23:27:35 -0500 (Thu, 12 Nov 2009)
New Revision: 17969

Modified:
   core/branches/Branch_3_3/core/src/main/java/org/hibernate/cfg/Configuration.java
Log:
HHH-4569 - Split focus of ConfigurationPerformanceTest


Modified: core/branches/Branch_3_3/core/src/main/java/org/hibernate/cfg/Configuration.java
===================================================================
--- core/branches/Branch_3_3/core/src/main/java/org/hibernate/cfg/Configuration.java	2009-11-13 04:26:57 UTC (rev 17968)
+++ core/branches/Branch_3_3/core/src/main/java/org/hibernate/cfg/Configuration.java	2009-11-13 04:27:35 UTC (rev 17969)
@@ -405,7 +405,7 @@
 		try {
 			org.dom4j.Document doc = xmlHelper.createSAXReader( xmlFile.getAbsolutePath(), errors, entityResolver ).read( xmlFile );
 			if ( errors.size() != 0 ) {
-				throw new MappingException( "invalid mapping", ( Throwable ) errors.get( 0 ) );
+				throw new InvalidMappingException( "file", xmlFile.toString(), (Throwable) errors.get(0) );
 			}
 
 			try {
@@ -422,7 +422,7 @@
 			add( doc );
 		}
 		catch( DocumentException e){
-			throw new MappingException( "invalid mapping", e );
+			throw new InvalidMappingException( "file", xmlFile.toString(), e );
 		}
 
 		return this;



More information about the hibernate-commits mailing list