Annotation Interface ResultMap

@Documented @Retention(RUNTIME) @Target(METHOD) public @interface ResultMap
The annotation that specify result map names to use.

How to use:
Mapper interface:

 public interface UserMapper {
   @Select("SELECT id, name FROM users WHERE id = #{id}")
   User selectById(int id);

   @Select("SELECT, FROM users u INNER JOIN users_email ue ON = WHERE = #{email}")
   User selectByEmail(String email);
Mapper XML:

 <mapper namespace="com.example.mapper.UserMapper">
   <resultMap id="userMap" type="com.example.model.User">
     <id property="id" column="id" />
     <result property="name" column="name" />
     <association property="email" select="selectUserEmailById" column="id" fetchType="lazy"/>
Jeff Butler