锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产香蕉碰碰人人,在线亚洲午夜理论AV大片,国产精品亚洲一区二区三区久久http://www.tkk7.com/jia8zy/category/25088.htmlzh-cnSun, 19 Aug 2007 23:18:29 GMTSun, 19 Aug 2007 23:18:29 GMT60ibatis eclipse plugin Abator閰嶇疆浣跨敤綆鍗曡鏄?/title><link>http://www.tkk7.com/jia8zy/archive/2007/08/19/137964.html</link><dc:creator>YY</dc:creator><author>YY</author><pubDate>Sun, 19 Aug 2007 11:09:00 GMT</pubDate><guid>http://www.tkk7.com/jia8zy/archive/2007/08/19/137964.html</guid><wfw:comment>http://www.tkk7.com/jia8zy/comments/137964.html</wfw:comment><comments>http://www.tkk7.com/jia8zy/archive/2007/08/19/137964.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/jia8zy/comments/commentRss/137964.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/jia8zy/services/trackbacks/137964.html</trackback:ping><description><![CDATA[<strong>瀹夎錛?br></strong>         eclipse鑷姩瀹夎url錛?http://ibatis.apache.org/tools/abator<br><br><strong>閰嶇疆錛?/strong><br>         瀹夎濂藉悗灝嗗湪New鑿滃崟涓湅鍒頒竴涓柊鐨勬枃浠剁被鍨婣bator for iBATIS Configuration File<font face="Courier New">錛岃繖涓槸Abator鐨勯厤緗枃浠訛紝new涓涓茍淇敼閰嶇疆鏂囦歡錛岄厤緗牱寮忓涓嬫墍紺猴細<br><br> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #0000ff"><?</span><span style="COLOR: #ff00ff">xml version="1.0" encoding="UTF-8"</span><span style="COLOR: #0000ff">?></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"><!</span><span style="COLOR: #ff00ff">DOCTYPE abatorConfiguration PUBLIC "-//Apache Software Foundation//DTD Abator for iBATIS Configuration 1.0//EN"<br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>  "http://ibatis.apache.org/dtd/abator-config_1_0.dtd"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">abatorConfiguration</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>  </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">abatorContext </span><span style="COLOR: #ff0000">generatorSet</span><span style="COLOR: #0000ff">="Java5"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000">    </span><span style="COLOR: #008000"><!--</span><span style="COLOR: #008000"> TODO: Add Database Connection Information </span><span style="COLOR: #008000">--></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>    </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">jdbcConnection </span><span style="COLOR: #ff0000">driverClass</span><span style="COLOR: #0000ff">="oracle.jdbc.driver.OracleDriver"</span><span style="COLOR: #ff0000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>        connectionURL</span><span style="COLOR: #0000ff">="jdbc:oracle:thin:@127.0.0.1:1521:orcl"</span><span style="COLOR: #ff0000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>        userId</span><span style="COLOR: #0000ff">="user"</span><span style="COLOR: #ff0000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>        password</span><span style="COLOR: #0000ff">="password"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>      </span><span style="COLOR: #008000"><!--</span><span style="COLOR: #008000"> 娉ㄦ剰錛氫互涓嬬殑classPathEntry涓瀹氳璁劇疆錛屽惁鍒欎細鍑虹幇Exception JDBC Driver鐨勯敊璇?nbsp;</span><span style="COLOR: #008000">--></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>      </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">classPathEntry </span><span style="COLOR: #ff0000">location</span><span style="COLOR: #0000ff">="D:/workspace/lib/ojdbc14_g.jar"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>    </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">jdbcConnection</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>    </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">javaModelGenerator </span><span style="COLOR: #ff0000">targetPackage</span><span style="COLOR: #0000ff">="com.iamyy.test.ibatis.vo"</span><span style="COLOR: #ff0000"> targetProject</span><span style="COLOR: #0000ff">="AbatorTest"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>    </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">sqlMapGenerator </span><span style="COLOR: #ff0000">targetPackage</span><span style="COLOR: #0000ff">="com.iamyy.test.ibatis.dao"</span><span style="COLOR: #ff0000"> targetProject</span><span style="COLOR: #0000ff">="AbatorTest"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>    </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">daoGenerator </span><span style="COLOR: #ff0000">type</span><span style="COLOR: #0000ff">="IBATIS"</span><span style="COLOR: #ff0000"> targetPackage</span><span style="COLOR: #0000ff">="com.iamyy.test.ibatis.dao"</span><span style="COLOR: #ff0000"> targetProject</span><span style="COLOR: #0000ff">="AbatorTest"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>    </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">table </span><span style="COLOR: #ff0000">tableName</span><span style="COLOR: #0000ff">="T_Role"</span><span style="COLOR: #ff0000"> domainObjectName</span><span style="COLOR: #0000ff">="Role"</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>      </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">generatedKey </span><span style="COLOR: #ff0000">column</span><span style="COLOR: #0000ff">="role_id"</span><span style="COLOR: #ff0000"> identity</span><span style="COLOR: #0000ff">="true"</span><span style="COLOR: #ff0000"> sqlStatement</span><span style="COLOR: #0000ff">="select s_role.nextval from dual"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>      </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">columnOverride </span><span style="COLOR: #ff0000">column</span><span style="COLOR: #0000ff">="role_id"</span><span style="COLOR: #ff0000"> property</span><span style="COLOR: #0000ff">="id"</span><span style="COLOR: #ff0000"> javaType</span><span style="COLOR: #0000ff">="java.lang.String"</span><span style="COLOR: #ff0000"> jdbcType</span><span style="COLOR: #0000ff">="VARCHAR"</span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>      </span><span style="COLOR: #0000ff"><</span><span style="COLOR: #800000">columnOverride </span><span style="COLOR: #ff0000">column</span><span style="COLOR: #0000ff">="role_name"</span><span style="COLOR: #ff0000"> property</span><span style="COLOR: #0000ff">="name"</span><span style="COLOR: #ff0000"> javaType</span><span style="COLOR: #0000ff">="java.lang.String"</span><span style="COLOR: #ff0000"> jdbcType</span><span style="COLOR: #0000ff">="VARCHAR"</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #0000ff">/></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>    </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">table</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top>  </span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">abatorContext</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top></span><span style="COLOR: #0000ff"></</span><span style="COLOR: #800000">abatorConfiguration</span><span style="COLOR: #0000ff">></span><span style="COLOR: #000000"><br><img src="http://www.tkk7.com/Images/OutliningIndicators/None.gif" align=top></span></div> <p><br>   </font> abatorContext鐨勪竴涓睘鎬eneratorSet鏈?涓夐」Legacy銆丣ava2銆丣ava5錛屼竴鑸敤Java5;</p> <p>         Legacy錛氬鏋滄病鏈塯eneratorSet灞炴х殑璇濓紝榛樿鏄疞egacy銆備絾騫朵笉鎺ㄨ崘浣跨敤Legacy鍥犱負瀹冨湪鐢熸垚Example綾伙紙鐢ㄤ簬鏌ヨ鏉′歡錛夌殑鏃跺欐湁寰堝闄愬埗錛屼粬灝嗘煡璇㈡潯浠跺啓鍦╯qlMap閰嶇疆鏂囦歡涓紝灝嗘煡璇㈠煎啓鍦‥xample涓紝榪欐牱灝卞淇敼浜х敓涓浜涘洶闅俱?/p> <p>         Java2鍜孞ava5錛氫粬浠彧鏀寔iBATIS 2.20浠ヤ笂鐨勭増鏈傚湪浠ヨ繖涓ā寮忔垚鐢熺殑Example鏂囦歡涓寘鍚簡鏌ヨ鏉′歡鍜屾煡璇㈠箋傝繖鏍蜂慨鏀瑰氨鏂逛究澶氫簡錛屽浜庣敤join鐨剆elect鏃剁殑鏌ヨ灝辨洿鏂?渚夸簡錛岃嚜宸卞彲浠ュ畾涔夋煡璇㈡潯浠訛紝鑷敱搴﹂珮浜嗗緢澶氾紙瀵逛簬join鐨刟nd鏌ヨ鍙兘榪樺緱鑷繁淇敼涓涓婨xample浠g爜錛夈傚浜巓r鍜宎nd鐨勫簲鐢↙egacy 鐨勯檺鍒跺氨姣旇緝澶т簡銆?/p> <p>         <javaModelGenerator>銆?<sqlMapGenerator>銆?<daoGenerator>鎻忚堪浜嗕釜鑷敓鎴愮殑浣嶇疆銆?lt;daoGenerator>涓璽ype灞炴у垯鐢ㄦ潵鍛婅瘔abator鐢熸垚鐨凞AO鏄敤浜巌BATIS榪樻槸SPRING絳夊鍣ㄣ?/p> <p>         <table>鍛婅瘔abator鐢熸垚閭d釜table鐨剆qlMap銆?/p> <p>         <generatedKey>鏉ュ憡璇塧bator閭d簺鍒楅渶瑕佽嚜鍔ㄨ繑鍥炲鹼紙褰撴彃鍏ョ殑鏃跺欏彲浠ヨ繑鍥炴彃鍏ヨ褰曠殑涓婚敭錛岃繖瀵規湁澶栭敭鐨勬暟鎹簱鏋佸叾鏈夌敤錛塱dentity榛樿涓篺alse錛屽垯鍦╯qlMap閰嶇疆鏂囦歡涓?lt;selectKey>鐨勪綅緗湪sql鍛戒護鍓嶉潰錛屾墍浠dentity搴旇鏀逛負true銆傛牴鎹暟鎹簱綾誨瀷鐨勪笉鍚宻qlStatement灞炴у彇鍊間篃涓嶅悓銆?br></p> <p><strong><br>榪愯錛?/strong><br>         鍙抽敭鍗曞嚮閰嶇疆鏂囦歡錛岀偣鍑籊enerate iBatis Artifacts錛岀敓鎴愭枃浠躲?/p> <p>         <em>ps: 濡傛灉<daoGenerator>涓璽ype灞炴ф槸ibatis鐨勮瘽錛岀敱浜嶢bator鐢熸垚鐨凞AOImpl鏂囦歡緇ф壙鑷猚om.ibatis.dao.client.template.SqlMapDaoTemplate錛屽湪ibatis ver. 2.3.0.677涓細鏈夐敊璇彁紺猴紝闇閰屾儏淇敼銆?br></em>         <em>ps鐨刾s: 涓嶅緩璁嬌鐢ㄨ嚜鍔ㄧ敓鎴愮殑Example鍘繪搷浣滄暟鎹紝涓鏄洜涓篍xample涓敓鎴愮殑鏂規硶鏈夋嫾鍐橲QL涔嬪珜涓嶇鍚圤O鎬濇兂錛屼簩鏄嫾鍐欏悗SQL鏁堢巼鏈夊緟榪涗竴姝ヨ冭瘉錛屾病浠旂粏鐪嬶紝浣嗚嚦灝戠湅鍒皀ot in璇彞錛屽鏋滆浣跨敤鐨勮瘽鑷沖皯瑕佽繘琛屼竴浜涗慨鏀廣?^-^)涓漢鎰氳銆?/em><br>         <br>         鍙傝冿細Abator document: <a >http://ibatis.apache.org/docs/tools/abator/</a><br>                     <a class=blog_name ><font color=#5f9ea0>鏋?/font></a>  <a class=post_title rel=follow><strong><font color=#000080>iBATIS鐨凟clipse鎻掍歡Abator浣跨敤鏂規硶</font></strong></a></p> <img src ="http://www.tkk7.com/jia8zy/aggbug/137964.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/jia8zy/" target="_blank">YY</a> 2007-08-19 19:09 <a href="http://www.tkk7.com/jia8zy/archive/2007/08/19/137964.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ibatis鎿嶄綔oracle鏁版嵁搴撴椂錛岀┖鍊?null)寮傚父鐨勪笉瀹屽叏瑙e喅鏂規硶http://www.tkk7.com/jia8zy/archive/2007/08/16/137311.htmlYYYYThu, 16 Aug 2007 08:18:00 GMThttp://www.tkk7.com/jia8zy/archive/2007/08/16/137311.htmlhttp://www.tkk7.com/jia8zy/comments/137311.htmlhttp://www.tkk7.com/jia8zy/archive/2007/08/16/137311.html#Feedback1http://www.tkk7.com/jia8zy/comments/commentRss/137311.htmlhttp://www.tkk7.com/jia8zy/services/trackbacks/137311.html
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in [someSqlMapFile.xml].  
--- The error occurred while applying a parameter map.  
--- Check the insertUser-InlineParameterMap.  
--- Check the parameter mapping for the '[someProperty]' property.  
--- Cause: java.sql.SQLException: 鏃犳晥鐨勫垪綾誨瀷
    at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeUpdate(GeneralStatement.java:
91)
    at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.insert(SqlMapExecutorDelegate.java:
447)
    at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.insert(SqlMapSessionImpl.java:
82)
    at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.insert(SqlMapClientImpl.java:
59)


濡傛灉浣犲厛鎻掑叆絀哄鹼紝蹇呴』鍛婅瘔IBatis褰撹瀛楁鍑虹幇NULL鍊艱鐢ㄤ粈涔堝兼潵鏇夸唬,鏂規硶鏈?縐嶏紝濡備笅:

鏂規硶涓(parameterClass):
1 INSERT INTO TEST(ID, NAME, PASSWD) VALUES (#id#,#name#, #passwd:VARCHAR:NULL#)

鏀寔鐨勭被鍨嬪湪 java.sql.Types 涓垪紺哄嚭鏉ヤ簡
娉ㄦ剰錛欴ATA 綾誨瀷榛樿涓嶈兘涓篘ULL

鏂規硶浜?parameterMap):
浣跨敤榪欎釜鏂規硶鏃訛紝棣栧厛搴斾繚璇佷綘鐨凮racle jdbc driver鏄?0G浠ヤ笂鐗堟湰錛屼笉鐒朵篃鏄櫧鎼?/span>

 1 <parameterMap id="insert-person-paraMap" class="com.unmi.Person" >
 2     <parameter property="id"/>
 3     <parameter property="name"/>
 4     <parameter property="passwd" jdbcType="VARCHAR"/>
 5 </parameterMap>
 6     
 7 <!-- 鎻掑叆涓鏉erson瀵瑰簲鐨勮褰曞埌鏁版嵁搴撲腑 -->
 8 <insert id="insertPerson" parameterMap="insert-person-paraMap">
 9     INSERT INTO PERSON (ID, NAME, PASSWD) VALUES (?,?,?)
10 </insert>
11 

鍙傝冿細http://www.tkk7.com/fatbear/archive/2007/06/07/122607.html 
            iBatis 搴旂敤紼嬪簭鍚?Oralce 鏁版嵁琛ㄥ瓧孌墊彃鍏?NULL 鍊?
            浣滆咃細鑲ョ唺鐔?/span>


YY 2007-08-16 16:18 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲一区免费观看| 精品国产_亚洲人成在线高清| 嫩草成人永久免费观看| 亚洲AV无码一区二区三区性色| 亚洲AV成人无码久久精品老人| 亚洲国产精品自产在线播放| 国内自产拍自a免费毛片| 91av免费观看| 国产精品偷伦视频观看免费| 色多多A级毛片免费看| 国产精品亚洲专区无码牛牛| 亚洲丝袜中文字幕| 亚洲美女视频免费| 亚洲av无码av制服另类专区| 久久综合亚洲色HEZYO国产| 亚洲国产人成精品| 国产网站在线免费观看| 在线a人片天堂免费观看高清| AA免费观看的1000部电影| 国产又大又粗又长免费视频 | 国产成人高清精品免费鸭子| 97在线线免费观看视频在线观看 | 亚洲一区二区中文| 亚洲AV无码乱码国产麻豆穿越| 亚洲熟妇中文字幕五十中出| 亚洲中文字幕无码爆乳AV| 久久久无码精品亚洲日韩软件| 亚洲精品97久久中文字幕无码| 亚洲不卡无码av中文字幕| 亚洲高清国产拍精品青青草原| 亚洲国产专区一区| 国产亚洲AV夜间福利香蕉149| 国产亚洲精品AA片在线观看不加载| 亚洲欧洲中文日韩av乱码| 亚洲中文字幕无码一区二区三区| 久久亚洲色一区二区三区| 久久被窝电影亚洲爽爽爽| 亚洲国产天堂久久综合网站| 亚洲天堂在线播放| 亚洲一本之道高清乱码| 亚洲欧美日韩中文字幕在线一区|