Fading Coder

An Old Coder’s Final Dance

MyBatis ResultMap and Nested Associations

When mapping query results in MyBatis, you can choose betwean resultType and resultMap. Only one can be used in a single select. With resultType, MyBatis relies on column-to-property name matching (and aliases) to populate a target class. With resultMap, you describe exact how each column should be...