2015-08-20から1日間の記事一覧

ObjectAPI形式でinsert文やupdate文でモデルを指定する

前回はselectの結果を任意のモデルに変換する処理をやってましたが、当然insertやupdateでもできます。 Dao006.java public interface Dao006 { @SqlQuery("select name from table001 where id = :id") String findNameById(@Bind("id") int id); @SqlUpdat…