1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="WebsiteES.myBatis.StoreMapper">
- <resultMap id="BaseResultMap" type="WebsiteES.myBatis.Store">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- <result column="store_id" jdbcType="TINYINT" property="storeId" />
- <result column="manager_staff_id" jdbcType="TINYINT" property="managerStaffId" />
- <result column="address_id" jdbcType="SMALLINT" property="addressId" />
- <result column="last_update" jdbcType="TIMESTAMP" property="lastUpdate" />
- </resultMap>
- <insert id="insert" parameterType="WebsiteES.myBatis.Store">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- insert into store (store_id, manager_staff_id, address_id,
- last_update)
- values (#{storeId,jdbcType=TINYINT}, #{managerStaffId,jdbcType=TINYINT}, #{addressId,jdbcType=SMALLINT},
- #{lastUpdate,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="WebsiteES.myBatis.Store">
- <!--
- WARNING - @mbggenerated
- This element is automatically generated by MyBatis Generator, do not modify.
- -->
- insert into store
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="storeId != null">
- store_id,
- </if>
- <if test="managerStaffId != null">
- manager_staff_id,
- </if>
- <if test="addressId != null">
- address_id,
- </if>
- <if test="lastUpdate != null">
- last_update,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="storeId != null">
- #{storeId,jdbcType=TINYINT},
- </if>
- <if test="managerStaffId != null">
- #{managerStaffId,jdbcType=TINYINT},
- </if>
- <if test="addressId != null">
- #{addressId,jdbcType=SMALLINT},
- </if>
- <if test="lastUpdate != null">
- #{lastUpdate,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- </mapper>
|