Mybatis Association

2015-11-21 01:53:36 · 作者: · 浏览: 4

        
        
        
        
        
        
        
    
    
    
        
        
        
        
        

? ??
? ? 解释:1)busines.administer.cp.model.CPBookCategory这个类中有childList这样一个属性。
? ? ? ? ? ? ? ? 2)这个属性childList是一个集合,显然不会是对应 数据库表中的某一字段,它来源于另一张表(根据CPBookCategory的id的值作参数)的查询结果集
? ? ? ? ? ? ? ? 3)将getCategoryChildList查询的结果集,填充到busines.administer.cp.model.CPBookCategory的childList属性中,返回