首页 > 编程知识 正文

mybatis如何返回自增主键,mybatis查不到数据返回什么

时间:2023-05-04 08:15:33 阅读:34007 作者:922

在结果映射中设置的列字段不能相同

result maptype=' com.entitya ' id=' map _ 01 ' result property=' id ' column=' id '/result property=' colum ona ' ConA collection property=' entityb ' Java type=' Java.util.arraylisisty resultmapresultmaptype=' com.entityb ' id=' map 结果属性结果属性=' colum onb ' column=' colum on _ b '/result property=' createtime ' column=' create _ tte 私有字符串列onb; 私有事件类别{私有事件Integerid; 私有字符串列ona; 私有字符串列onb; 私有字符串创建时间}

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。