JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Object Relational Mapping » iBATIS  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 mybatis 如何取到 resultsetMetadata?
wangccwkimo





發文: 85
積分: 1
於 2014-07-22 13:40 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
spring 3.2 + mybatis 3.x
SqlSession.select 回傳List<Map>時,想知道欄位的型態,請問該如何取得?或有其它解法?

先謝謝了


reply to postreply to post
作者 Re:mybatis 如何取到 resultsetMetadata? [Re:wangccwkimo]
wangccwkimo





發文: 85
積分: 1
於 2014-07-22 16:03 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
最後改使用 org.springframework.jdbc.core.JdbcTemplate 去取得 resultsetMetadata 了,

JdbcTemplate.query(sql,new ResultSetExtractor() {.....});

mybatis 似乎無法取得 resultsetMetadata 。


reply to postreply to post
» JWorld@TW »  Object Relational Mapping » iBATIS

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8