Development: The ibatis query set for exception collection has multiple objects, but all objects are empty. ibatis has multiple objects.
The treasure of a thousand miles is destroyed by the ant nest. Many small bugs are often the key to affecting the program running.
Ibatis bug: Multiple objects exist in the ibatis query set, but all objects are empty.
At first, I was confused about this problem. After debugging, I got the input parameters and the number of objects returned to the List was also correct. The problem lies in
The properties in the obtained list object are empty.
After experiments, we found that when ibatis sets the object attribute resultMap, one parameter is missing. In fact, the attribute of the object Bean does not correspond to the data table field.
Solution:
Keep the attributes of the corresponding object Bean consistent with the data table fields.