Browse Source

jfinal 2.1 release ^_^

James 10 years ago
parent
commit
7ca2c4f5fc
1 changed files with 8 additions and 4 deletions
  1. 8 4
      src/com/jfinal/core/Injector.java

+ 8 - 4
src/com/jfinal/core/Injector.java

@@ -115,12 +115,16 @@ public class Injector {
 				attrName = paraName;
 			}
 			
-			try {
-				Class<?> colType = table.getColumnType(attrName);
-				if (colType == null) {
+			Class<?> colType = table.getColumnType(attrName);
+			if (colType == null) {
+				if (skipConvertError) {
+					continue ;
+				} else {
 					throw new ActiveRecordException("The model attribute " + attrName + " is not exists.");
 				}
-				
+			}
+			
+			try {
 				String[] paraValueArray = entry.getValue();
 				String paraValue = (paraValueArray != null && paraValueArray.length > 0) ? paraValueArray[0] : null;