Nulls not being set by mapper?

16 views
Skip to first unread message

dq

unread,
Oct 31, 2012, 4:04:09 PM10/31/12
to mybati...@googlegroups.com
I found one other person reporting this issue but nobody replied to him, so I'm going to see if I have more luck...

I have an object with a String member variable with a default value of "".  It's valid to set this to null and to store that null in the database.  I've got this member variable mapped in the resultMap for the object type in mybatis 3.1.1.  When I do a select, the setter for this member variable is never being called when the value in the database for its column is null.  

Is there any way to make it correctly set the null value?

Eduardo Macarron

unread,
Oct 31, 2012, 4:52:27 PM10/31/12
to mybati...@googlegroups.com
Have a look at this issue:
Reply all
Reply to author
Forward
0 new messages