-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MyBatis-generated mappers and models Introduced new MyBatis-generated mapper and XML files for transaction classifications, categories, groups, and shipment entities. These additions include CRUD operations and corresponding models to interface with the database effectively.
- Loading branch information
Showing
29 changed files
with
5,908 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
.../src/main/java/com/example/sms/infrastructure/datasource/autogen/mapper/仕入先マスタMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package com.example.sms.infrastructure.datasource.autogen.mapper; | ||
|
||
import com.example.sms.infrastructure.datasource.autogen.model.仕入先マスタ; | ||
import com.example.sms.infrastructure.datasource.autogen.model.仕入先マスタKey; | ||
|
||
public interface 仕入先マスタMapper { | ||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table public.仕入先マスタ | ||
* | ||
* @mbg.generated Tue Jan 07 18:37:28 JST 2025 | ||
*/ | ||
int deleteByPrimaryKey(仕入先マスタKey key); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table public.仕入先マスタ | ||
* | ||
* @mbg.generated Tue Jan 07 18:37:28 JST 2025 | ||
*/ | ||
int insert(仕入先マスタ record); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table public.仕入先マスタ | ||
* | ||
* @mbg.generated Tue Jan 07 18:37:28 JST 2025 | ||
*/ | ||
int insertSelective(仕入先マスタ record); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table public.仕入先マスタ | ||
* | ||
* @mbg.generated Tue Jan 07 18:37:28 JST 2025 | ||
*/ | ||
仕入先マスタ selectByPrimaryKey(仕入先マスタKey key); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table public.仕入先マスタ | ||
* | ||
* @mbg.generated Tue Jan 07 18:37:28 JST 2025 | ||
*/ | ||
int updateByPrimaryKeySelective(仕入先マスタ record); | ||
|
||
/** | ||
* This method was generated by MyBatis Generator. | ||
* This method corresponds to the database table public.仕入先マスタ | ||
* | ||
* @mbg.generated Tue Jan 07 18:37:28 JST 2025 | ||
*/ | ||
int updateByPrimaryKey(仕入先マスタ record); | ||
} |
320 changes: 320 additions & 0 deletions
320
...i/src/main/java/com/example/sms/infrastructure/datasource/autogen/mapper/仕入先マスタMapper.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,320 @@ | ||
<?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="com.example.sms.infrastructure.datasource.autogen.mapper.仕入先マスタMapper"> | ||
<resultMap id="BaseResultMap" type="com.example.sms.infrastructure.datasource.autogen.model.仕入先マスタ"> | ||
<!-- | ||
WARNING - @mbg.generated | ||
This element is automatically generated by MyBatis Generator, do not modify. | ||
This element was generated on Tue Jan 07 18:37:28 JST 2025. | ||
--> | ||
<id column="仕入先コード" jdbcType="VARCHAR" property="仕入先コード" /> | ||
<id column="仕入先枝番" jdbcType="INTEGER" property="仕入先枝番" /> | ||
<result column="仕入先名" jdbcType="VARCHAR" property="仕入先名" /> | ||
<result column="仕入先名カナ" jdbcType="VARCHAR" property="仕入先名カナ" /> | ||
<result column="仕入先担当者名" jdbcType="VARCHAR" property="仕入先担当者名" /> | ||
<result column="仕入先部門名" jdbcType="VARCHAR" property="仕入先部門名" /> | ||
<result column="仕入先郵便番号" jdbcType="CHAR" property="仕入先郵便番号" /> | ||
<result column="仕入先都道府県" jdbcType="VARCHAR" property="仕入先都道府県" /> | ||
<result column="仕入先住所1" jdbcType="VARCHAR" property="仕入先住所1" /> | ||
<result column="仕入先住所2" jdbcType="VARCHAR" property="仕入先住所2" /> | ||
<result column="仕入先電話番号" jdbcType="VARCHAR" property="仕入先電話番号" /> | ||
<result column="仕入先FAX番号" jdbcType="VARCHAR" property="仕入先fax番号" /> | ||
<result column="仕入先メールアドレス" jdbcType="VARCHAR" property="仕入先メールアドレス" /> | ||
<result column="仕入先締日" jdbcType="INTEGER" property="仕入先締日" /> | ||
<result column="仕入先支払月" jdbcType="INTEGER" property="仕入先支払月" /> | ||
<result column="仕入先支払日" jdbcType="INTEGER" property="仕入先支払日" /> | ||
<result column="仕入先支払方法" jdbcType="INTEGER" property="仕入先支払方法" /> | ||
<result column="作成日時" jdbcType="TIMESTAMP" property="作成日時" /> | ||
<result column="作成者名" jdbcType="VARCHAR" property="作成者名" /> | ||
<result column="更新日時" jdbcType="TIMESTAMP" property="更新日時" /> | ||
<result column="更新者名" jdbcType="VARCHAR" property="更新者名" /> | ||
</resultMap> | ||
<sql id="Base_Column_List"> | ||
<!-- | ||
WARNING - @mbg.generated | ||
This element is automatically generated by MyBatis Generator, do not modify. | ||
This element was generated on Tue Jan 07 18:37:28 JST 2025. | ||
--> | ||
仕入先コード, 仕入先枝番, 仕入先名, 仕入先名カナ, 仕入先担当者名, 仕入先部門名, 仕入先郵便番号, 仕入先都道府県, 仕入先住所1, 仕入先住所2, 仕入先電話番号, | ||
仕入先FAX番号, 仕入先メールアドレス, 仕入先締日, 仕入先支払月, 仕入先支払日, 仕入先支払方法, 作成日時, 作成者名, 更新日時, 更新者名 | ||
</sql> | ||
<select id="selectByPrimaryKey" parameterType="com.example.sms.infrastructure.datasource.autogen.model.仕入先マスタKey" resultMap="BaseResultMap"> | ||
<!-- | ||
WARNING - @mbg.generated | ||
This element is automatically generated by MyBatis Generator, do not modify. | ||
This element was generated on Tue Jan 07 18:37:28 JST 2025. | ||
--> | ||
select | ||
<include refid="Base_Column_List" /> | ||
from public.仕入先マスタ | ||
where 仕入先コード = #{仕入先コード,jdbcType=VARCHAR} | ||
and 仕入先枝番 = #{仕入先枝番,jdbcType=INTEGER} | ||
</select> | ||
<delete id="deleteByPrimaryKey" parameterType="com.example.sms.infrastructure.datasource.autogen.model.仕入先マスタKey"> | ||
<!-- | ||
WARNING - @mbg.generated | ||
This element is automatically generated by MyBatis Generator, do not modify. | ||
This element was generated on Tue Jan 07 18:37:28 JST 2025. | ||
--> | ||
delete from public.仕入先マスタ | ||
where 仕入先コード = #{仕入先コード,jdbcType=VARCHAR} | ||
and 仕入先枝番 = #{仕入先枝番,jdbcType=INTEGER} | ||
</delete> | ||
<insert id="insert" parameterType="com.example.sms.infrastructure.datasource.autogen.model.仕入先マスタ"> | ||
<!-- | ||
WARNING - @mbg.generated | ||
This element is automatically generated by MyBatis Generator, do not modify. | ||
This element was generated on Tue Jan 07 18:37:28 JST 2025. | ||
--> | ||
insert into public.仕入先マスタ (仕入先コード, 仕入先枝番, 仕入先名, | ||
仕入先名カナ, 仕入先担当者名, 仕入先部門名, | ||
仕入先郵便番号, 仕入先都道府県, 仕入先住所1, | ||
仕入先住所2, 仕入先電話番号, 仕入先FAX番号, | ||
仕入先メールアドレス, 仕入先締日, 仕入先支払月, | ||
仕入先支払日, 仕入先支払方法, 作成日時, | ||
作成者名, 更新日時, 更新者名) | ||
values (#{仕入先コード,jdbcType=VARCHAR}, #{仕入先枝番,jdbcType=INTEGER}, #{仕入先名,jdbcType=VARCHAR}, | ||
#{仕入先名カナ,jdbcType=VARCHAR}, #{仕入先担当者名,jdbcType=VARCHAR}, #{仕入先部門名,jdbcType=VARCHAR}, | ||
#{仕入先郵便番号,jdbcType=CHAR}, #{仕入先都道府県,jdbcType=VARCHAR}, #{仕入先住所1,jdbcType=VARCHAR}, | ||
#{仕入先住所2,jdbcType=VARCHAR}, #{仕入先電話番号,jdbcType=VARCHAR}, #{仕入先fax番号,jdbcType=VARCHAR}, | ||
#{仕入先メールアドレス,jdbcType=VARCHAR}, #{仕入先締日,jdbcType=INTEGER}, #{仕入先支払月,jdbcType=INTEGER}, | ||
#{仕入先支払日,jdbcType=INTEGER}, #{仕入先支払方法,jdbcType=INTEGER}, #{作成日時,jdbcType=TIMESTAMP}, | ||
#{作成者名,jdbcType=VARCHAR}, #{更新日時,jdbcType=TIMESTAMP}, #{更新者名,jdbcType=VARCHAR}) | ||
</insert> | ||
<insert id="insertSelective" parameterType="com.example.sms.infrastructure.datasource.autogen.model.仕入先マスタ"> | ||
<!-- | ||
WARNING - @mbg.generated | ||
This element is automatically generated by MyBatis Generator, do not modify. | ||
This element was generated on Tue Jan 07 18:37:28 JST 2025. | ||
--> | ||
insert into public.仕入先マスタ | ||
<trim prefix="(" suffix=")" suffixOverrides=","> | ||
<if test="仕入先コード != null"> | ||
仕入先コード, | ||
</if> | ||
<if test="仕入先枝番 != null"> | ||
仕入先枝番, | ||
</if> | ||
<if test="仕入先名 != null"> | ||
仕入先名, | ||
</if> | ||
<if test="仕入先名カナ != null"> | ||
仕入先名カナ, | ||
</if> | ||
<if test="仕入先担当者名 != null"> | ||
仕入先担当者名, | ||
</if> | ||
<if test="仕入先部門名 != null"> | ||
仕入先部門名, | ||
</if> | ||
<if test="仕入先郵便番号 != null"> | ||
仕入先郵便番号, | ||
</if> | ||
<if test="仕入先都道府県 != null"> | ||
仕入先都道府県, | ||
</if> | ||
<if test="仕入先住所1 != null"> | ||
仕入先住所1, | ||
</if> | ||
<if test="仕入先住所2 != null"> | ||
仕入先住所2, | ||
</if> | ||
<if test="仕入先電話番号 != null"> | ||
仕入先電話番号, | ||
</if> | ||
<if test="仕入先fax番号 != null"> | ||
仕入先FAX番号, | ||
</if> | ||
<if test="仕入先メールアドレス != null"> | ||
仕入先メールアドレス, | ||
</if> | ||
<if test="仕入先締日 != null"> | ||
仕入先締日, | ||
</if> | ||
<if test="仕入先支払月 != null"> | ||
仕入先支払月, | ||
</if> | ||
<if test="仕入先支払日 != null"> | ||
仕入先支払日, | ||
</if> | ||
<if test="仕入先支払方法 != null"> | ||
仕入先支払方法, | ||
</if> | ||
<if test="作成日時 != null"> | ||
作成日時, | ||
</if> | ||
<if test="作成者名 != null"> | ||
作成者名, | ||
</if> | ||
<if test="更新日時 != null"> | ||
更新日時, | ||
</if> | ||
<if test="更新者名 != null"> | ||
更新者名, | ||
</if> | ||
</trim> | ||
<trim prefix="values (" suffix=")" suffixOverrides=","> | ||
<if test="仕入先コード != null"> | ||
#{仕入先コード,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先枝番 != null"> | ||
#{仕入先枝番,jdbcType=INTEGER}, | ||
</if> | ||
<if test="仕入先名 != null"> | ||
#{仕入先名,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先名カナ != null"> | ||
#{仕入先名カナ,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先担当者名 != null"> | ||
#{仕入先担当者名,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先部門名 != null"> | ||
#{仕入先部門名,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先郵便番号 != null"> | ||
#{仕入先郵便番号,jdbcType=CHAR}, | ||
</if> | ||
<if test="仕入先都道府県 != null"> | ||
#{仕入先都道府県,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先住所1 != null"> | ||
#{仕入先住所1,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先住所2 != null"> | ||
#{仕入先住所2,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先電話番号 != null"> | ||
#{仕入先電話番号,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先fax番号 != null"> | ||
#{仕入先fax番号,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先メールアドレス != null"> | ||
#{仕入先メールアドレス,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先締日 != null"> | ||
#{仕入先締日,jdbcType=INTEGER}, | ||
</if> | ||
<if test="仕入先支払月 != null"> | ||
#{仕入先支払月,jdbcType=INTEGER}, | ||
</if> | ||
<if test="仕入先支払日 != null"> | ||
#{仕入先支払日,jdbcType=INTEGER}, | ||
</if> | ||
<if test="仕入先支払方法 != null"> | ||
#{仕入先支払方法,jdbcType=INTEGER}, | ||
</if> | ||
<if test="作成日時 != null"> | ||
#{作成日時,jdbcType=TIMESTAMP}, | ||
</if> | ||
<if test="作成者名 != null"> | ||
#{作成者名,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="更新日時 != null"> | ||
#{更新日時,jdbcType=TIMESTAMP}, | ||
</if> | ||
<if test="更新者名 != null"> | ||
#{更新者名,jdbcType=VARCHAR}, | ||
</if> | ||
</trim> | ||
</insert> | ||
<update id="updateByPrimaryKeySelective" parameterType="com.example.sms.infrastructure.datasource.autogen.model.仕入先マスタ"> | ||
<!-- | ||
WARNING - @mbg.generated | ||
This element is automatically generated by MyBatis Generator, do not modify. | ||
This element was generated on Tue Jan 07 18:37:28 JST 2025. | ||
--> | ||
update public.仕入先マスタ | ||
<set> | ||
<if test="仕入先名 != null"> | ||
仕入先名 = #{仕入先名,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先名カナ != null"> | ||
仕入先名カナ = #{仕入先名カナ,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先担当者名 != null"> | ||
仕入先担当者名 = #{仕入先担当者名,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先部門名 != null"> | ||
仕入先部門名 = #{仕入先部門名,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先郵便番号 != null"> | ||
仕入先郵便番号 = #{仕入先郵便番号,jdbcType=CHAR}, | ||
</if> | ||
<if test="仕入先都道府県 != null"> | ||
仕入先都道府県 = #{仕入先都道府県,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先住所1 != null"> | ||
仕入先住所1 = #{仕入先住所1,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先住所2 != null"> | ||
仕入先住所2 = #{仕入先住所2,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先電話番号 != null"> | ||
仕入先電話番号 = #{仕入先電話番号,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先fax番号 != null"> | ||
仕入先FAX番号 = #{仕入先fax番号,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先メールアドレス != null"> | ||
仕入先メールアドレス = #{仕入先メールアドレス,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="仕入先締日 != null"> | ||
仕入先締日 = #{仕入先締日,jdbcType=INTEGER}, | ||
</if> | ||
<if test="仕入先支払月 != null"> | ||
仕入先支払月 = #{仕入先支払月,jdbcType=INTEGER}, | ||
</if> | ||
<if test="仕入先支払日 != null"> | ||
仕入先支払日 = #{仕入先支払日,jdbcType=INTEGER}, | ||
</if> | ||
<if test="仕入先支払方法 != null"> | ||
仕入先支払方法 = #{仕入先支払方法,jdbcType=INTEGER}, | ||
</if> | ||
<if test="作成日時 != null"> | ||
作成日時 = #{作成日時,jdbcType=TIMESTAMP}, | ||
</if> | ||
<if test="作成者名 != null"> | ||
作成者名 = #{作成者名,jdbcType=VARCHAR}, | ||
</if> | ||
<if test="更新日時 != null"> | ||
更新日時 = #{更新日時,jdbcType=TIMESTAMP}, | ||
</if> | ||
<if test="更新者名 != null"> | ||
更新者名 = #{更新者名,jdbcType=VARCHAR}, | ||
</if> | ||
</set> | ||
where 仕入先コード = #{仕入先コード,jdbcType=VARCHAR} | ||
and 仕入先枝番 = #{仕入先枝番,jdbcType=INTEGER} | ||
</update> | ||
<update id="updateByPrimaryKey" parameterType="com.example.sms.infrastructure.datasource.autogen.model.仕入先マスタ"> | ||
<!-- | ||
WARNING - @mbg.generated | ||
This element is automatically generated by MyBatis Generator, do not modify. | ||
This element was generated on Tue Jan 07 18:37:28 JST 2025. | ||
--> | ||
update public.仕入先マスタ | ||
set 仕入先名 = #{仕入先名,jdbcType=VARCHAR}, | ||
仕入先名カナ = #{仕入先名カナ,jdbcType=VARCHAR}, | ||
仕入先担当者名 = #{仕入先担当者名,jdbcType=VARCHAR}, | ||
仕入先部門名 = #{仕入先部門名,jdbcType=VARCHAR}, | ||
仕入先郵便番号 = #{仕入先郵便番号,jdbcType=CHAR}, | ||
仕入先都道府県 = #{仕入先都道府県,jdbcType=VARCHAR}, | ||
仕入先住所1 = #{仕入先住所1,jdbcType=VARCHAR}, | ||
仕入先住所2 = #{仕入先住所2,jdbcType=VARCHAR}, | ||
仕入先電話番号 = #{仕入先電話番号,jdbcType=VARCHAR}, | ||
仕入先FAX番号 = #{仕入先fax番号,jdbcType=VARCHAR}, | ||
仕入先メールアドレス = #{仕入先メールアドレス,jdbcType=VARCHAR}, | ||
仕入先締日 = #{仕入先締日,jdbcType=INTEGER}, | ||
仕入先支払月 = #{仕入先支払月,jdbcType=INTEGER}, | ||
仕入先支払日 = #{仕入先支払日,jdbcType=INTEGER}, | ||
仕入先支払方法 = #{仕入先支払方法,jdbcType=INTEGER}, | ||
作成日時 = #{作成日時,jdbcType=TIMESTAMP}, | ||
作成者名 = #{作成者名,jdbcType=VARCHAR}, | ||
更新日時 = #{更新日時,jdbcType=TIMESTAMP}, | ||
更新者名 = #{更新者名,jdbcType=VARCHAR} | ||
where 仕入先コード = #{仕入先コード,jdbcType=VARCHAR} | ||
and 仕入先枝番 = #{仕入先枝番,jdbcType=INTEGER} | ||
</update> | ||
</mapper> |
Oops, something went wrong.