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>

    排序规则

  • 相关阅读:
    CCF模拟题 窗口
    CSUOJ 1541 There is No Alternative
    MySQL数据库优化的八种方式(经典必看)
    PHP面向对象-----魔术方法
    PHP面向对象(OOP)----分页类
    2017最新PHP初级经典面试题目汇总(下篇)
    2017最新PHP经典面试题目汇总(上篇)
    原型模式
    适配器模式
    策略模式
  • 原文地址:https://www.cnblogs.com/tongs/p/7530466.html
Copyright © 2011-2022 走看看