why return null list ? #3521
-
i have this sql select a.name,a.post from bot b left join posts a where b.id = ? and that database column contains NULL for some rows, MyBatis will return a List that includes null elements, i want to avoid these null values in your resulting list. |
Beta Was this translation helpful? Give feedback.
Answered by
nieqiurong
Aug 23, 2025
Replies: 2 comments 1 reply
-
Configure callSettersOnNulls |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
HeyAlaia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://mybatis.org/mybatis-3/configuration.html#settings