Open
Description
The documentation on using complex parameters needs to be more detailed. Full examples, including type handlers would help a lot.
Some specifics to be clarified:
- When using a map, should the type be
map
,hashmap
,java.util.Map
,java.util.HashMap
, or anything else? - How to implement a type handler for a complex type (a custom type defined in the DB, ie. when using
jdbcType=STRUCT
andjdbcTypeName=MyDbTypeName
). - How to handle complex OUT parameters.
- In this particular example from the documentation,
#{middleInitial, mode=OUT, jdbcType=STRUCT, jdbcTypeName=MY_TYPE, resultMap=departmentResultMap}
, what does the resultMap have to do with the parameter?