Home > Back-end >  Filter the null columns when mybatis return type for the map
Filter the null columns when mybatis return type for the map

Time:09-29

There is now a select statement, in the mapper resultType for the map, use sqlsession selectcursor or selectlist method, execute when a listed as null, directly will skip this null columns, this will lead to return List The index of each map is the same in the corresponding key,

Known resultType could be mapped to an entity class,

Excuse me without entity mapping, is there any way let mybatis
Also null columns shall be returned?
  • Related