Hi,
I recently upgraded from torque-3.0-b2 to torque-3.0-rc1. I am having problems
compiling torque generated file. The code generated by the new version tries to
convert null to an int.
This version generates following code:
public void setUBatch(UBatch v) throws TorqueException
{
if (v == null)
{
setBatchId((int)null);
}
else
{
setBatchId(v.getBatchId());
}
aUBatch = v;
}
The same schema file generated following code with Torque-3.0-b2
public void setUBatch(UBatch v) throws TorqueException
{
setBatchId(v.getBatchId());
aUBatch = v;
}
Setting required attribute to true or false does not make any difference.
Another issue is that the generated code is calling several methods that do not exist
e.g
It called method equals (int,int) in class org.apache.commons.lang.ObjectUtils
There is no method in ObjectUtils that takes int parameters.
Any ideas how I can fix it?
Thanks