摘要: ResultMap中<id>和<result>的区别 <resultMap type="com.wkd.entity.AreaCode" id="baseResultMap"> <!-- colum:表中列名(大写) property:类中属性名 jdbcType:表中类型 --> <id colu 阅读全文
posted @ 2020-10-09 11:48 登风360 阅读(1123) 评论(0) 推荐(0)
摘要: 1. 关联-association2. 集合-collection 比如同时有User.java和Card.java两个类 User.java如下: public class User{ private Card card_one; private List<Card> card_many; } 在 阅读全文
posted @ 2020-10-09 11:40 登风360 阅读(539) 评论(0) 推荐(0)