parent
ac3ef9c3ea
commit
679ef1f754
@ -1 +1,96 @@
|
||||
<?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>
|
||||
|
||||
<context id="DB2Tables" targetRuntime="MyBatis3">
|
||||
<!--避免生成重复代码的插件-->
|
||||
<plugin type="com.how2java.tmall.util.OverIsMergeablePlugin" />
|
||||
|
||||
<!--是否在代码中显示注释-->
|
||||
<commentGenerator>
|
||||
<property name="suppressDate" value="true" />
|
||||
<property name="suppressAllComments" value="true" />
|
||||
</commentGenerator>
|
||||
|
||||
<!--数据库链接地址账号密码-->
|
||||
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost/tmall_ssm" userId="root" password="123456789">
|
||||
</jdbcConnection>
|
||||
<javaTypeResolver>
|
||||
<property name="forceBigDecimals" value="false"/>
|
||||
</javaTypeResolver>
|
||||
<!--生成pojo类存放位置-->
|
||||
<javaModelGenerator targetPackage="com.how2java.tmall.pojo" targetProject="src/main/java">
|
||||
<property name="enableSubPackages" value="true"/>
|
||||
<property name="trimStrings" value="true"/>
|
||||
</javaModelGenerator>
|
||||
<!--生成xml映射文件存放位置-->
|
||||
<sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources">
|
||||
<property name="enableSubPackages" value="true"/>
|
||||
</sqlMapGenerator>
|
||||
<!--生成mapper类存放位置-->
|
||||
<javaClientGenerator type="XMLMAPPER" targetPackage="com.how2java.tmall.mapper" targetProject="src/main/java">
|
||||
<property name="enableSubPackages" value="true"/>
|
||||
</javaClientGenerator>
|
||||
|
||||
|
||||
<!--生成对应表及类名-->
|
||||
|
||||
<table tableName="category" domainObjectName="Category" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="true" selectByExampleQueryId="false">
|
||||
<property name="my.isgen.usekeys" value="true"/>
|
||||
<property name="useActualColumnNames" value="true"/>
|
||||
<generatedKey column="id" sqlStatement="JDBC"/>
|
||||
|
||||
</table>
|
||||
|
||||
<table tableName="property" domainObjectName="Property" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="true" selectByExampleQueryId="false">
|
||||
<property name="my.isgen.usekeys" value="true"/>
|
||||
<property name="useActualColumnNames" value="true"/>
|
||||
<generatedKey column="id" sqlStatement="JDBC"/>
|
||||
</table>
|
||||
|
||||
<table tableName="product" domainObjectName="Product" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="true" selectByExampleQueryId="false">
|
||||
<property name="my.isgen.usekeys" value="true"/>
|
||||
<property name="useActualColumnNames" value="true"/>
|
||||
<generatedKey column="id" sqlStatement="JDBC"/>
|
||||
</table>
|
||||
|
||||
<table tableName="productImage" domainObjectName="ProductImage" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="true" selectByExampleQueryId="false">
|
||||
<property name="my.isgen.usekeys" value="true"/>
|
||||
<property name="useActualColumnNames" value="true"/>
|
||||
<generatedKey column="id" sqlStatement="JDBC"/>
|
||||
</table>
|
||||
|
||||
<table tableName="order_" domainObjectName="Order" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="true" selectByExampleQueryId="false">
|
||||
<property name="my.isgen.usekeys" value="true"/>
|
||||
<property name="useActualColumnNames" value="true"/>
|
||||
<generatedKey column="id" sqlStatement="JDBC"/>
|
||||
</table>
|
||||
|
||||
<table tableName="propertyValue" domainObjectName="PropertyValue" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="true" selectByExampleQueryId="false">
|
||||
<property name="my.isgen.usekeys" value="true"/>
|
||||
<property name="useActualColumnNames" value="true"/>
|
||||
<generatedKey column="id" sqlStatement="JDBC"/>
|
||||
</table>
|
||||
|
||||
<table tableName="review" domainObjectName="Review" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="true" selectByExampleQueryId="false">
|
||||
<property name="my.isgen.usekeys" value="true"/>
|
||||
<property name="useActualColumnNames" value="true"/>
|
||||
<generatedKey column="id" sqlStatement="JDBC"/>
|
||||
</table>
|
||||
|
||||
<table tableName="user" domainObjectName="User" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="true" selectByExampleQueryId="false">
|
||||
<property name="my.isgen.usekeys" value="true"/>
|
||||
<property name="useActualColumnNames" value="true"/>
|
||||
<generatedKey column="id" sqlStatement="JDBC"/>
|
||||
</table>
|
||||
|
||||
<table tableName="orderItem" domainObjectName="OrderItem" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="true" selectByExampleQueryId="false">
|
||||
<property name="my.isgen.usekeys" value="true"/>
|
||||
<property name="useActualColumnNames" value="true"/>
|
||||
<generatedKey column="id" sqlStatement="JDBC"/>
|
||||
</table>
|
||||
|
||||
</context>
|
||||
</generatorConfiguration>
|
||||
|
Loading…
Reference in new issue