MyBatis级联(一对一级联association)

初接触到MyBatis的级联,建立一个studentBean和studentCardBean,在查询student的信息的同时能够获取studentCard信息,因此需要在studentBean中建立一个studentCardBean类型的变量。 studentC ardBean studentBean ​这时我们在studentCardMapper中已经有了依据学生ID对学生卡信息进行查询的
相关文章
相关标签/搜索