Open GoogleCodeExporter opened 9 years ago
there is a setting called "callSettersOnNulls", default value is false. you can
set it in xml file
<configuration>
<settings>
<setting name="callSettersOnNulls" value="true" />
......
</settings>
</configuration>
if you enable the setting, ibatis may call setter on primitive types such as
int, boolean to set a null value, that will throw out a error, please do some
regression test after you enable this.
in 3.2.2 snapshot, the issue is fixed.
Original comment by xiao...@gmail.com
on 22 Mar 2013 at 2:53
Yep. I am afraid this combination is not supported.
If there is a not default constructor mybatis considers that at least one
constructor parameter must not be null. Otherwise the object is discarded.
This is intentional (for simplicity) not a bug. But will keep this as a feature
request.
Original comment by eduardo.macarron
on 25 Mar 2013 at 8:58
Original issue reported on code.google.com by
daniel0...@gmail.com
on 21 Mar 2013 at 10:58Attachments: