ibatis in sql statement to determine when and isNull isEqual

Disclaimer: This article is bloggers create their own article, reproduced, please attach Bowen link! https://blog.csdn.net/WXN069/article/details/89513864

isNull null field is determined whether property, a more convenient isEmpty, comprising a null and an empty string
if you use

a.id = # id #

even if you are not in the set value of the bean id, the id is the initial value 0 instead of null ; so this configuration will a.id equal to 0
and you name variables like configuration with isNotNull, name if no value is set, the initial is null, name of the condition not to add the sql;
isEqual equivalent of equals, with a much more digital It is generally determined state value


or

Guess you like

Origin blog.csdn.net/WXN069/article/details/89513864