zoukankan      html  css  js  c++  java
  • mybatis利用generator自动生成的代码

        /**
         * 排序规则
         */
        protected String orderByClause;
        /**
         * 去重规则
         */
        protected boolean distinct;
        /**
         * where条件集合
         */
        protected List<Criteria> oredCriteria;

              

        <!-- location指的是mysql驱动jar路径 -->
        <classPathEntry    location="D:\TONG\mybatiscreater\mysql-connector-java-5.1.43.jar"/>
    <jdbcConnection driverClass="com.mysql.jdbc.Driver"      connectionURL="jdbc:mysql://localhost:3306/jdsc?characterEncoding=utf8" 
                                                                  userId="root" password="root">
    </jdbcConnection>
            <!-- 实体类生成的地方 -->
            <javaModelGenerator targetPackage="com.yt.jd.entity"
                                targetProject="D://TONG//mybatiscreater">
                <property name="enableSubPackages" value="true"/>
                <property name="trimStrings" value="true"/>
            </javaModelGenerator>
            <!--生成 mybaits mapper层xml对象--><!-- 此层必须在dao对象上面 -->
            <sqlMapGenerator targetPackage="com.yt.jd.mybaits"
                             targetProject="D://TONG//mybatiscreater">
                <property name="enableSubPackages" value="true"/>
            </sqlMapGenerator>
            <!--生成 mybaits mapper层 dao 对象-->
            <javaClientGenerator targetPackage="com.yt.jd.dao"
                                 targetProject="D://TONG//mybatiscreater" type="XMLMAPPER">
                <property name="enableSubPackages" value="true"/>
            </javaClientGenerator>
            <!-- 表名/实体类名 -->
            <table tableName="supplier_bidding" domainObjectName="SupplierBidding"
                   enableCountByExample="false" enableUpdateByExample="false"
                   enableDeleteByExample="false" enableSelectByExample="true"
                   selectByExampleQueryId="false">
                <!--<columnRenamingRule searchString="^D_"
                                    replaceString=""/>-->
            </table>

    排序规则

  • 相关阅读:
    PCLint
    pthread_join
    作业过程查找
    sqlcmd (转)
    整合问题
    PATINDEX
    回归Dos操作的快感,进入PowerShell世界 (转)
    Javascript 面向对象编程(一):封装
    理解闭包
    Javascript 面向对象编程(三):非构造函数的继承
  • 原文地址:https://www.cnblogs.com/tongs/p/7530466.html
Copyright © 2011-2022 走看看