id, term_id, preset_no, name, angle_x, angle_y, velocity delete from terminal_presets where id = #{id,jdbcType=INTEGER} insert into terminal_presets (id, term_id, preset_no, name, angle_x, angle_y, velocity ) values (#{id,jdbcType=INTEGER}, #{termId,jdbcType=INTEGER}, #{presetNo,jdbcType=TINYINT}, #{name,jdbcType=TINYINT}, #{angleX,jdbcType=REAL}, #{angleY,jdbcType=REAL}, #{velocity,jdbcType=REAL} ) insert into terminal_presets id, term_id, preset_no, name, angle_x, angle_y, velocity, #{id,jdbcType=INTEGER}, #{termId,jdbcType=INTEGER}, #{presetNo,jdbcType=TINYINT}, #{name,jdbcType=TINYINT}, #{angleX,jdbcType=REAL}, #{angleY,jdbcType=REAL}, #{velocity,jdbcType=REAL}, update terminal_presets term_id = #{termId,jdbcType=INTEGER}, preset_no = #{presetNo,jdbcType=TINYINT}, name = #{name,jdbcType=TINYINT}, angle_x = #{angleX,jdbcType=REAL}, angle_y = #{angleY,jdbcType=REAL}, velocity = #{velocity,jdbcType=REAL}, where id = #{id,jdbcType=INTEGER} update terminal_presets set term_id = #{termId,jdbcType=INTEGER}, preset_no = #{presetNo,jdbcType=TINYINT}, name = #{name,jdbcType=TINYINT}, angle_x = #{angleX,jdbcType=REAL}, angle_y = #{angleY,jdbcType=REAL}, velocity = #{velocity,jdbcType=REAL} where id = #{id,jdbcType=INTEGER}