Mybatis Result Map Key Value. Following is the example of result Map query. Find the complete example step by step.
Code and so forth would be the key of the entry and the value of the mapped columns would be the value of the entry. Can someone please tell me how to modify my InsertPrimary statement so I can capture the auto generated key called seq and use. It maps the results of the select queries to the Student class.
The list of rows is mapped to a list of Maps and for each row the column name is used as the key and each column content as the value for the map.
The id attribute is the name of the result mapping. If its just a map you want and your query is returning rows of key value then just set result type to hash map. Once the result map is defined we can refer these from several SELECT statements. I use this to mapand it didn workand throw TooManyResultsException.