cloudroam
2025-03-10 c306cba52bcc3e2c423f77d4a52c35ad04c52038
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
        PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
        "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
 
<generatorConfiguration>
    <classPathEntry
            location="E:\maven\maven-repository\mysql\mysql-connector-java\5.1.30\mysql-connector-java-5.1.30.jar"/>
 
    <context id="DB2Tables" targetRuntime="MyBatis3" defaultModelType="flat">
        <commentGenerator>
            <property name="suppressAllComments" value="true"/>
            <property name="suppressDate" value="true"/>
        </commentGenerator>
 
        <jdbcConnection driverClass="com.mysql.jdbc.Driver"
                        connectionURL="jdbc:mysql://localhost:3306/jsh_erp?generateSimpleParameterMetadata=true"
                        userId="root" password="123456">
        </jdbcConnection>
 
        <javaTypeResolver>
            <property name="forceBigDecimals" value="false"/>
        </javaTypeResolver>
 
        <!-- generate Model -->
        <javaModelGenerator targetPackage="com.jsh.erp.datasource.entities"
                            targetProject="src\main\java">
            <property name="enableSubPackages" value="false"/>
            <property name="trimStrings" value="true"/>
        </javaModelGenerator>
 
        <!-- generate xml -->
        <sqlMapGenerator targetPackage="mapper_xml" targetProject="src\main\resources">
            <property name="enableSubPackages" value="false"/>
        </sqlMapGenerator>
 
        <!-- generate Mapper -->
        <javaClientGenerator type="XMLMAPPER"
                             targetPackage="com.jsh.erp.datasource.mappers"
                             targetProject="src\main\java">
            <property name="enableSubPackages" value="false"/>
            <property name="exampleMethodVisibility" value="public"/>
        </javaClientGenerator>
        <!-- <table tableName="jsh_account" domainObjectName="Account"></table>
        <table tableName="jsh_account_head" domainObjectName="AccountHead"></table>
        <table tableName="jsh_account_item" domainObjectName="AccountItem"></table>
        <table tableName="jsh_depot" domainObjectName="Depot"></table>
        <table tableName="jsh_depot_head" domainObjectName="DepotHead"></table>
        <table tableName="jsh_depot_item" domainObjectName="DepotItem"></table>
        <table tableName="jsh_function" domainObjectName="Function"></table>
        <table tableName="jsh_in_out_item" domainObjectName="InOutItem"></table>
        <table tableName="jsh_log" domainObjectName="Log"></table>
        <table tableName="jsh_material" domainObjectName="Material"></table>
        <table tableName="jsh_material_attribute" domainObjectName="MaterialAttribute"></table>
        <table tableName="jsh_material_extend" domainObjectName="MaterialExtend"></table>
        <table tableName="jsh_material_current_stock" domainObjectName="MaterialCurrentStock"></table>
        <table tableName="jsh_material_initial_stock" domainObjectName="MaterialInitialStock"></table>
        <table tableName="jsh_material_category" domainObjectName="MaterialCategory"></table>
        <table tableName="jsh_material_property" domainObjectName="MaterialProperty"></table>
        <table tableName="jsh_person" domainObjectName="Person"></table>
        <table tableName="jsh_role" domainObjectName="Role"></table>
        <table tableName="jsh_supplier" domainObjectName="Supplier"></table>
        <table tableName="jsh_system_config" domainObjectName="SystemConfig"></table>
        <table tableName="jsh_unit" domainObjectName="Unit"></table>
        <table tableName="jsh_user" domainObjectName="User"></table>
        <table tableName="jsh_user_business" domainObjectName="UserBusiness"></table>
        <table tableName="jsh_serial_number" domainObjectName="SerialNumber"></table>
        <table tableName="jsh_organization" domainObjectName="Organization"></table>
        <table tableName="jsh_orga_user_rel" domainObjectName="OrgaUserRel"></table>
        <table tableName="jsh_tenant" domainObjectName="Tenant"></table>
        <table tableName="jsh_platform_config" domainObjectName="PlatformConfig"></table>
        <table tableName="jsh_msg" domainObjectName="Msg"></table> -->
    </context>
</generatorConfiguration>