iBATIS
<select id="findMypTopics" resultMap="TNews-Result"> SELECT hoge_id, hoge_name FROM t_hoge WHERE hoge_id = ]]> 1 </select> 参考:http://pgmemo.blog116.fc2.com/blog-entry-32.html
JavaでO/RマッパをするのにiBATISを使っています。 DBにインサートする時に、マッピングされたクラスに値を格納するわけですが、そのたびに //(抜粋) Emp emp = new Emp(); emp.setName(name); emp.setDept(dept); sqlMap.insert("insertEmpMap", emp); っ…