[hibernate-commits] Hibernate SVN: r11050 - branches/Branch_3_2/Hibernate3/src/org/hibernate/cfg.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue Jan 16 18:22:51 EST 2007


Author: epbernard
Date: 2007-01-16 18:22:50 -0500 (Tue, 16 Jan 2007)
New Revision: 11050

Modified:
   branches/Branch_3_2/Hibernate3/src/org/hibernate/cfg/Mappings.java
Log:
better exception handling

Modified: branches/Branch_3_2/Hibernate3/src/org/hibernate/cfg/Mappings.java
===================================================================
--- branches/Branch_3_2/Hibernate3/src/org/hibernate/cfg/Mappings.java	2007-01-16 18:09:35 UTC (rev 11049)
+++ branches/Branch_3_2/Hibernate3/src/org/hibernate/cfg/Mappings.java	2007-01-16 23:22:50 UTC (rev 11050)
@@ -511,8 +511,8 @@
 		}
 		while (logical == null && currentTable != null && description != null);
 		if (logical == null) {
-			throw new MappingException( "Unable to find logical column name from physical name: "
-					+ table.getName() + "." + physicalName );
+			throw new MappingException( "Unable to find logical column name from physical name "
+					+ physicalName + " in table " + table.getName() );
 		}
 		return logical;
 	}




More information about the hibernate-commits mailing list