[hibernate-commits] Hibernate SVN: r14027 - branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Sep 24 16:00:11 EDT 2007


Author: max.andersen at jboss.com
Date: 2007-09-24 16:00:10 -0400 (Mon, 24 Sep 2007)
New Revision: 14027

Modified:
   branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/TemplateHelper.java
Log:
rollback - ui can/should avoid setting up bogus properties ;)

Modified: branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/TemplateHelper.java
===================================================================
--- branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/TemplateHelper.java	2007-09-24 19:58:18 UTC (rev 14026)
+++ branches/Branch_3_2/HibernateExt/tools/src/java/org/hibernate/tool/hbm2x/TemplateHelper.java	2007-09-24 20:00:10 UTC (rev 14027)
@@ -157,7 +157,7 @@
 	public void removeFromContext(String key, Object expected) {
     	log.trace("removeFromContext " + key + "=" + expected);
         Object replaced = internalRemoveFromContext(key);
-        //if(replaced==null) throw new IllegalStateException(key + " did not exist in template context.");
+        if(replaced==null) throw new IllegalStateException(key + " did not exist in template context.");
         /*if(replaced!=expected) { //FREEMARKER-TODO: how can i validate this ? or maybe not needed to validate since mutation is considered bad ?
         	throw new IllegalStateException("expected " + key + " to be bound to " + expected + " but was to " + replaced);
         }*/




More information about the hibernate-commits mailing list