Problem description : If three watches ( Including the relationship table ) Cascade query , The primary keys of the main table and the parts list are id Words , Only the first one can be found out from multiple data in the schedule / The last data .
Three tables , Permissions on the table (Permission), Permission group table (PermissionGroup), The relationship table between permission group and permission (PermissionPermissionGroupKey)
The entity class is not written .
Original error mapping file :
<resultMap id="permissionGroupResultMap" type="cn.kx59.admin.entity.PermissionGroup" > <id column="id" property="id" jdbcType="INTEGER" />
Participation of this paper Tencent cloud media sharing plan , You are welcome to join us , share .