ibatis有关问题插入后获取主键有关问题

ibatis问题插入后获取主键问题Integer schoolCourseId (Integer) session.insert(addSchoolCourseByApp

ibatis问题插入后获取主键问题
Integer schoolCourseId = (Integer) session.insert("addSchoolCourseByApplication", ca);
SchoolCourse sc = new SchoolCourse();
ca.setSchoolCourse(sc);

ca对象内的id居然变成了和insert产生的主键。。。