【mybatis】【對象屬性關係的映射】

many2one 案例:員工中有部門屬性.java 1.查詢完員工後,再發查詢部門的sql. 在員工的映射文件中,添加屬性關係的映射.web <resultMap type="User" id="user_mapping"> <association property="dept" column="dept_id" select="com.lwf.mybatis.hallo.Deptmen
相關文章
相關標籤/搜索