one to many relation using mybatis or ibatis

前端 未结 1 1961
不知归路
不知归路 2021-01-07 04:12

I have database which has two tables

  post: 
    id
    post_name
    post_desc        

  files:
    file_id
    file_name

  post_attachments
    post_id         


        
1条回答
  •  -上瘾入骨i
    2021-01-07 04:32

    As shown in the manual, you have to write a more complex query and change the mapper.

    The request will be something like that :

    
    

    And your result map :

    
      
      
      
         
         
      
    
    

    0 讨论(0)
提交回复
热议问题