锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产夜色精品一区二区av,国内精品国产成人,久久一区二区三区电影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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 山东省| 长岛县| 昌图县| 太原市| 中方县| 乌苏市| 衡阳市| 集安市| 绥芬河市| 海宁市| 和静县| 大丰市| 滕州市| 德保县| 开阳县| 邳州市| 临澧县| 武鸣县| 平远县| 禹州市| 汨罗市| 高密市| 西乌珠穆沁旗| 定兴县| 观塘区| 彭山县| 伊川县| 枣强县| 八宿县| 萍乡市| 莎车县| 枣庄市| 马公市| 凤台县| 咸阳市| 芮城县| 盐亭县| 温宿县| 永清县| 五常市| 衢州市|