首页 新闻 赞助 找找看

Ibatis代码自动生成(abator)

0
[已关闭问题]
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;">Ibatis</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">代码自动生成</span><span lang="EN-US"><span style="font-family: Times New Roman;">(abator)</span></span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">&nbsp;</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">&nbsp;</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt;"><span style="mso-fareast-font-family: 'Times New Roman';" lang="EN-US"><span style="mso-list: Ignore;"><span style="font-family: Times New Roman;"><span style="font-size: small;">1、</span><span style="font: 7pt &quot;Times New Roman&quot;;">&nbsp; </span></span></span></span><span style="font-size: small;"><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">引入</span><span lang="EN-US"><span style="font-family: Times New Roman;">AbatorForEclipse1.1.0 </span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">插件</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span></span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">&nbsp;</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">选择</span><span lang="EN-US"><span style="font-family: Times New Roman;">find and Install&hellip;</span></span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">&nbsp;</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">选择</span><span lang="EN-US"><span style="font-family: Times New Roman;">next</span></span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span lang="EN-US"><span style="font-family: Times New Roman;">New Archived Site-&gt;</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">选择本地已经下载的</span><span lang="EN-US"><span style="font-family: Times New Roman;">AbatorForEclipse1.1.0</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">插件,安装完毕</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">&nbsp;</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"><span style="font-size: small; font-family: Times New Roman;">&nbsp;</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt 18pt; text-indent: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt;"><span style="mso-fareast-font-family: 'Times New Roman';" lang="EN-US"><span style="mso-list: Ignore;"><span style="font-family: Times New Roman;"><span style="font-size: small;">2、</span><span style="font: 7pt &quot;Times New Roman&quot;;">&nbsp; </span></span></span></span><span style="font-size: small;"><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">为项目布置</span><span lang="EN-US"><span style="font-family: Times New Roman;">abator</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">,复制相应的</span><span lang="EN-US"><span style="font-family: Times New Roman;">ibatis</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">文件到项目的</span><span lang="EN-US"><span style="font-family: Times New Roman;">bin</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">文件下。选择项目。</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">选择</span><span lang="EN-US"><span style="font-family: Times New Roman;">Abator for Ibatis Configuration File</span></span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">相应的文件会看到</span><span lang="EN-US"><span style="font-family: Times New Roman;">abatorConfig.xml</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">。</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">配置</span><span lang="EN-US"><span style="font-family: Times New Roman;"> abatorConfig.xml</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">,以下配置</span><span lang="EN-US"><span style="font-family: Times New Roman;">ms-sqlserver</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">为例。</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: gray; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;?xml version="1.0" encoding="UTF-8" ?&gt;</span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;!DOCTYPE abatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Abator for iBATIS Configuration 1.0//EN" "http://ibatis.apache.org/dtd/abator-config_1_0.dtd" &gt;</span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;abatorConfiguration</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&gt;</span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp; </span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;abatorContext</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&gt;</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp; </span>&lt;!<span style="mso-spacerun: yes;">&nbsp; </span>--driverClass</span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;">和<span lang="EN-US">connectionURL</span>通过<span lang="EN-US">myEclipse DataBase Explore </span>查找<span lang="EN-US">-- &gt;</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 18pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;jdbcConnection</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">driverClass=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"com.microsoft.jdbc.sqlserver.SQLServerDriver"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">connectionURL=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=DianYa"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">userId=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"sa"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">password=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"sa"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&gt;</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 18pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;! </span><span style="font-size: 9pt; color: navy; mso-font-kerning: 0pt; mso-ascii-font-family: 宋体; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="font-family: Times New Roman;">&ndash;</span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">classPathEntry</span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;">有多个<span lang="EN-US">jar</span>包时写入多个,只有一个的仅写入一个<span lang="EN-US">-- &gt;</span></span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;classPathEntry</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">location=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"E:\sqlJar\msbase.jar"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">/&gt;</span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;classPathEntry</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">location=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"E:\sqlJar\mssqlserver.jar"</span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">/&gt;</span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;classPathEntry</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">location=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"E:\sqlJar\msutil.jar"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">/&gt;</span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 18pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;/jdbcConnection&gt;</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 18pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;! </span><span style="font-size: 9pt; color: navy; mso-font-kerning: 0pt; mso-ascii-font-family: 宋体; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="font-family: Times New Roman;">&ndash;</span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; mso-font-kerning: 0pt; mso-ascii-font-family: 宋体; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="font-family: Times New Roman;">&ndash;</span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">targetPackage</span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;">指定项目包名,<span lang="EN-US">targetProject </span>指定项目名<span lang="EN-US">-- &gt;</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;javaModelGenerator</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">targetPackage=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"com.HaiKang.yeness.Modal.Admin"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">targetProject=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"IBatis_yeness"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">/&gt;</span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;sqlMapGenerator</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">targetPackage=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"com.HaiKang.yeness.sqlMap.Admin"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">targetProject=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"IBatis_yeness"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">/&gt;</span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 18pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;daoGenerator</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">targetPackage=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"com.HaiKang.yeness.Dao"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">targetProject=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"IBatis_yeness"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">type=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"GENERIC-CI"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">/&gt;</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 18pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;! </span><span style="font-size: 9pt; color: navy; mso-font-kerning: 0pt; mso-ascii-font-family: 宋体; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="font-family: Times New Roman;">&ndash;</span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; mso-font-kerning: 0pt; mso-ascii-font-family: 宋体; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="font-family: Times New Roman;">&ndash;</span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">tableName </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;">指定数据库表明<span lang="EN-US">-- &gt;</span></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;table</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">tableName=</span><span style="font-size: 9pt; color: green; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">"Sys_User"</span><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"> </span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&gt;</span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp; </span></span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;/table&gt;</span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left; mso-layout-grid-align: none;" align="left"><span style="font-size: 9pt; color: black; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp; </span></span><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;/abatorContext&gt;</span><span style="font-size: 9pt; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US"></span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&lt;/abatorConfiguration&gt;</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;" lang="EN-US">&nbsp;</span></p> <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: 9pt; color: navy; font-family: 宋体; mso-font-kerning: 0pt; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体;">注:最新的<span lang="EN-US">ibatis</span>包只有一个包,内包含了所有类</span></p>
落山剑客的主页 落山剑客 | 初学一级 | 园豆:200
提问于:2009-05-19 09:01
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册