CodePudding
Home
front end
Back-end
Net
Software design
Enterprise
Blockchain
Mobile
Software engineering
database
OS
other
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?
Page link:
https//www.codepudding.com/Backend/39748.html
Prev:
Write a thread pool
Next:
Springboot output entity class will always be null, whether yml file or properties
Tags:
Java EE
Related
Links:
CodePudding