关闭

iBatis使用点滴

899人阅读 评论(0) 收藏 举报

iBatis使用点滴

Since this is a very simple case, iBATIS could in fact generate this SQL for us. In Example 4, we could have also written the select statement this way:

  <select id="SelectAll" resultMap="SelectResult">
  <generate table="PERSON" />
  </select>

Using the columns from the ResultMap, iBATIS would generate the SQL statement for us. But this feature only works with the simplest of SQL statements. Most often, you will write your own SQL statement or pass parameters to a stored procedure. (See Section 3 in the DataMapper Developers Guide for more about the generate tag.)

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:100394次
    • 积分:1527
    • 等级:
    • 排名:千里之外
    • 原创:42篇
    • 转载:17篇
    • 译文:2篇
    • 评论:31条
    文章分类
    最新评论
    常去的地方