锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产精品一区二区久久,4480yy私人影院高清不卡,一本一道dvd在线观看免费视频http://www.aygfsteel.com/stevenjohn/category/52027.html閭d簺闈掓槬鐨勫瞾鏈?/description>zh-cnTue, 25 Dec 2012 20:00:45 GMTTue, 25 Dec 2012 20:00:45 GMT60MyBatis鐨勫姩鎬丼QL璇﹁В http://www.aygfsteel.com/stevenjohn/archive/2012/12/25/393451.htmlabinabinTue, 25 Dec 2012 05:10:00 GMThttp://www.aygfsteel.com/stevenjohn/archive/2012/12/25/393451.htmlhttp://www.aygfsteel.com/stevenjohn/comments/393451.htmlhttp://www.aygfsteel.com/stevenjohn/archive/2012/12/25/393451.html#Feedback0http://www.aygfsteel.com/stevenjohn/comments/commentRss/393451.htmlhttp://www.aygfsteel.com/stevenjohn/services/trackbacks/393451.html闃呰鍏ㄦ枃

abin 2012-12-25 13:10 鍙戣〃璇勮
]]>
Mybatis 鑷姩鐢熸垚浠g爜宸ュ叿http://www.aygfsteel.com/stevenjohn/archive/2012/06/21/381280.htmlabinabinThu, 21 Jun 2012 10:10:00 GMThttp://www.aygfsteel.com/stevenjohn/archive/2012/06/21/381280.htmlhttp://www.aygfsteel.com/stevenjohn/comments/381280.htmlhttp://www.aygfsteel.com/stevenjohn/archive/2012/06/21/381280.html#Feedback0http://www.aygfsteel.com/stevenjohn/comments/commentRss/381280.htmlhttp://www.aygfsteel.com/stevenjohn/services/trackbacks/381280.htmlMyBatis涓紝鍙互浣跨敤Generator鑷姩鐢熸垚浠g爜錛屽寘鎷珼AO灞傘?MODEL灞?銆丮APPING SQL鏄犲皠鏂囦歡銆?nbsp;

絎竴姝ワ細涓嬭澆MyBatis鐨凣enerator宸ュ叿 
涓嬭澆鍦板潃錛?/span>http://code.google.com/p/mybatis/downloads/detail?name=mybatis-generator-core-1.3.1-bundle.zip&can=3&q=Product%3DGenerator 

絎簩姝ワ細閰嶇疆鑷姩鐢熸垚浠g爜鎵闇鐨刋ML閰嶇疆鏂囦歡錛屼緥濡傦紙generator.xml錛?nbsp; 
<?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>
<!-- classPathEntry:鏁版嵁搴撶殑JDBC椹卞姩,鎹㈡垚浣犺嚜宸辯殑椹卞姩浣嶇疆 -->
<classPathEntry location="D:\libs\ojdbc14.jar" />
<context id="DB2Tables" targetRuntime="MyBatis3">
<!-- 鍘婚櫎鑷姩鐢熸垚鐨勬敞閲?-->
<commentGenerator>
<property name="suppressAllComments" value="true" />
</commentGenerator>
<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@172.16.88.10:1521:mydb" userId="abc" password="abc">
</jdbcConnection>
<javaTypeResolver >
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<!-- targetProject:鑷姩鐢熸垚浠g爜鐨勪綅緗?-->
<javaModelGenerator targetPackage="com.test.model" targetProject="E:\eclipse 3.5.2\workspace\gao\src">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<sqlMapGenerator targetPackage="com.test.mapping"  targetProject="E:\eclipse 3.5.2\workspace\gao\src">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER" targetPackage="com.test.dao"  targetProject="E:\eclipse 3.5.2\workspace\gao\src">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<!-- tableName:鐢ㄤ簬鑷姩鐢熸垚浠g爜鐨勬暟鎹簱琛紱domainObjectName:瀵瑰簲浜庢暟鎹簱琛ㄧ殑javaBean綾誨悕 -->
<table tableName="pds_system_item" domainObjectName="PdsSystemItem" />
<table tableName="pds_system_level" domainObjectName="PdsSystemLevel" />
</context>
</generatorConfiguration>
灝嗚繖涓枃浠朵繚瀛樿嚦浣犱笅杞界殑mybatis-generator-core-1.3.1鏂囦歡澶逛笅 

絎笁姝ワ細鐢ㄥ懡浠よ榪愯錛堣寰楅夋嫨鑷繁鐨勬枃浠跺湴鍧錛?nbsp; 
java -jar E:\soft\mybatis-generator-core-1.3.1\lib\mybatis-generator-core-1.3.1.jar -configfile E:\soft\mybatis-generator-core-1.3.1\genrator.xml -overwrite





鎴戣嚜宸卞啓鐨勫涓嬶細
<?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>
<!-- classPathEntry:鏁版嵁搴撶殑JDBC椹卞姩,鎹㈡垚浣犺嚜宸辯殑椹卞姩浣嶇疆 -->
<classPathEntry location="D:\abin\Java\MybatisTool\mybatis-generator-core-1.3.1\lib\mysql-connector-java-5.1.20-bin.jar" />
<context id="DB2Tables" targetRuntime="MyBatis3">
<!-- 鍘婚櫎鑷姩鐢熸垚鐨勬敞閲?-->
<commentGenerator>
<property name="suppressAllComments" value="true" />
</commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost:3306/mycrm" userId="root" password="root">
</jdbcConnection>
<javaTypeResolver >
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<!-- targetProject:鑷姩鐢熸垚浠g爜鐨勪綅緗?-->
<javaModelGenerator targetPackage="com.test.model" targetProject="F:\nb\mp\src\main\java">
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<sqlMapGenerator targetPackage="com.test.mapping"  targetProject="F:\nb\mp\src\main\java">
<property name="enableSubPackages" value="true" />
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER" targetPackage="com.test.dao"  targetProject="F:\nb\mp\src\main\java">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<!-- tableName:鐢ㄤ簬鑷姩鐢熸垚浠g爜鐨勬暟鎹簱琛紱domainObjectName:瀵瑰簲浜庢暟鎹簱琛ㄧ殑javaBean綾誨悕 -->
<table tableName="testcrm" domainObjectName="testcrmone" />
<table tableName="testmy" domainObjectName="testmyone" />
</context>
</generatorConfiguration>



abin 2012-06-21 18:10 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 榆社县| 惠州市| 茌平县| 乡城县| 湛江市| 鄂尔多斯市| 合山市| 大城县| 犍为县| 聂荣县| 沧州市| 泌阳县| 宜兰县| 油尖旺区| 循化| 建德市| 奉节县| 中方县| 营山县| 彭州市| 明溪县| 常山县| 延川县| 巴中市| 丹阳市| 左权县| 阳朔县| 鲁甸县| 含山县| 南部县| 邢台县| 城口县| 元氏县| 临朐县| 扎囊县| 亚东县| 东城区| 塔河县| 长岛县| 湖州市| 治县。|