Change to Scala's codegen: post params weren't being found because Model's name is a class name and a param's valueTypeInternal is package + class name so they weren't matching.

This commit is contained in:
Colin Pollock 2012-02-28 01:11:14 -08:00
parent d4a8287a40
commit 8307aca59d

View File

@ -136,7 +136,7 @@ public class Endpoint {
isParamSetAvailable = true;
break;
}
if(model.getName().equalsIgnoreCase(modelField.getValueTypeInternal())){
if(modelField.getValueTypeInternal().endsWith(model.getName())){
isParamSetAvailable = true;
break;
}