전체 페이지뷰

2015년 10월 14일 수요일

mybatis null check

I usually found the Null key value reject in the map using return type map
I searched for the mybatis setting to involve Null key value .


callSettersOnNulls

Specifies if setters or map's put method will be called when a retrieved value is null. It is useful when you rely on Map.keySet() or null value initialization. Note primitives such as (int,boolean,etc.) will not be set to null.

true | false


Mybaits 3.2.2
mybatis-config 
<settings>
<setting name="callSettersOnNulls" value="true"/>
</settings>

댓글 없음:

댓글 쓰기