Mybatis Nested Select for Association/Collection doesn't work

后端 未结 1 917
伪装坚强ぢ
伪装坚强ぢ 2021-01-25 06:58

I am trying to test out Mybatis\'s user manual with the result map section. Mybatis version : mybatis-3.1.0



        
相关标签:
1条回答
  • 2021-01-25 07:52

    Because there is not an author_id column in the result got from getBlog.

    Try:

     select
        b.id,
        b.title,
        b.author_id
        from
        blog b
        where b.id = #{id} 
    
    0 讨论(0)
提交回复
热议问题