[OFBiz] SVN: r5931 -
trunk/framework/entity/src/org/ofbiz/entity/finder
jonesde at svn.ofbiz.org
jonesde at svn.ofbiz.org
Sat Oct 8 04:43:36 EDT 2005
Author: jonesde
Date: 2005-10-08 03:43:33 -0500 (Sat, 08 Oct 2005)
New Revision: 5931
Modified:
trunk/framework/entity/src/org/ofbiz/entity/finder/ByAndFinder.java
Log:
Added better exception when the entity name is bad, ie no def found for name in a by and find
Modified: trunk/framework/entity/src/org/ofbiz/entity/finder/ByAndFinder.java
===================================================================
--- trunk/framework/entity/src/org/ofbiz/entity/finder/ByAndFinder.java 2005-10-08 08:15:10 UTC (rev 5930)
+++ trunk/framework/entity/src/org/ofbiz/entity/finder/ByAndFinder.java 2005-10-08 08:43:33 UTC (rev 5931)
@@ -131,6 +131,10 @@
ModelEntity modelEntity = delegator.getModelEntity(entityName);
String resultSetTypeString = this.resultSetTypeExdr.expandString(context);
+ if (modelEntity == null) {
+ throw new IllegalArgumentException("In find entity by and could not find definition for entity with name [" + entityName + "].");
+ }
+
boolean useCache = "true".equals(useCacheStr);
boolean filterByDate = "true".equals(filterByDateStr);
boolean distinct = "true".equals(distinctStr);
More information about the Svn
mailing list