resultType vs resultMap
Must choose either one of them
resultType directly tries to copy values to specified POJO
resultMap provides opportunity to map values to inconsistent attribute namesarrow-up-right of POJO
Common mapperarrow-up-right
Pro: No need to write mapper interface / xml
Con: would be much more lines comparing with regular query
Page Helperarrow-up-right
Last updated 4 years ago