Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MyBatis Dynamic SQLの Kotlinサポートを使う

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Takehata Naoto Takehata Naoto
December 09, 2020
1.2k

MyBatis Dynamic SQLの Kotlinサポートを使う

2020年12月9日(水) 「集まれKotlin好き!Kolint愛好会 vol.26 @オンライン」の談義資料です。

Avatar for Takehata Naoto

Takehata Naoto

December 09, 2020
Tweet

More Decks by Takehata Naoto

Transcript

  1. 登壇、執筆 • CEDEC 2018登壇 • CEDEC 2019登壇 • Software Design

    2019年2月号〜4月号で短期連載 「サーバーサイド開発の品質を向上させる Java→Kotlin 移行のススメ」執筆
  2. XMLの例(抜粋) <insert id="insertSelective" parameterType="love.kotlin.server.crud.database.User" > insert into user <trim prefix="("

    suffix=")" suffixOverrides=","> <if test="id != null"> id, </if> <if test="name != null"> name, </if> <if test="age != null"> age,
  3. インターフェースの例(抜粋) @Insert({ "insert into user (id, name, " , "age)",

    "values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, " , "#{age,jdbcType=INTEGER})" }) int insert(User record); int insertSelective(User record);