pyg的jdbc

<?xml version="1.0" encoding="UTF-8"?>
	<jdbcConnection driverClass="com.mysql.jdbc.Driver"
					connectionURL="jdbc:mysql://127.0.0.1:3306/pyg16" userId="root"
					password="root">
	</jdbcConnection>
	<!-- <jdbcConnection driverClass="oracle.jdbc.OracleDriver"
    connectionURL="jdbc:oracle:thin:@127.0.0.1:1521:yycg"
    userId="yycg"
    password="yycg">
    </jdbcConnection> -->
	<!-- 默认 false,把 JDBC DECIMAL 和 NUMERIC 类型解析为 Integer true,把 JDBC DECIMAL 和
    NUMERIC 类型解析为java.math.BigDecimal -->
	<javaTypeResolver>
		<property name="forceBigDecimals" value="false" />
	</javaTypeResolver>
	<!-- targetProject:生成 POJO 类的位置 -->
	<javaModelGenerator targetPackage="com.pyg.pojo"	targetProject="src/main/java">
		<!-- enableSubPackages:是否让schema 作为包的后缀 -->
		<property name="enableSubPackages" value="true" />
		<!-- 从数据库返回的值被清理前后的空格 -->
		<property name="trimStrings" value="true" />
	</javaModelGenerator>


    <!-- 生成 XML文件 -->
    <sqlMapGenerator targetPackage="com.pyg.mapper"  	 targetProject="./src/main/resources">
        <property name="enableSubPackages" value="false" />
    </sqlMapGenerator>
    <!--生成接口-->
    <javaClientGenerator type="XMLMAPPER"
                         targetPackage="com.pyg.mapper"  targetProject="./src/main/java">
        <property name="enableSubPackages" value="false" />
    </javaClientGenerator>


	<table tableName="tb_user"></table>
	<table tableName="tb_content"></table>
	<table tableName="tb_content_category"></table>
	<table tableName="tb_item"></table>
	<table tableName="tb_item_cat"></table>
	<table tableName="tb_order"></table>
	<table tableName="tb_order_item"></table>
	<table tableName="tb_address"></table>
	<table tableName="tb_areas"></table>
	<table tableName="tb_brand"></table>
	<table tableName="tb_provinces"></table>
	<table tableName="tb_cities"></table>
	<table tableName="tb_seller"></table>
	<table tableName="tb_freight_template"></table>
	<table tableName="tb_specification"></table>
	<table tableName="tb_specification_option"></table>
	<table tableName="tb_type_template"></table>
	<table tableName="tb_goods"></table>
	<table tableName="tb_goods_desc"></table>
	<table tableName="tb_pay_log"></table>
	<table tableName="tb_seckill_goods"></table>
	<table tableName="tb_seckill_order"></table>
</context>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值