2021-10-14から1日間の記事一覧
MyBatisで下のようなSELECT文の結果を、用意したクラスにマッピングしたい select user_id, user_name, hashed_password from some_table where id = #{id} この方法について調べた mybatis.org Result Maps Result Mapsを使うのが良さそう こんな感じで使う <select id="selectUsers" resultMap="userResultMap"></select>…