OneToOne OneToMany

This commit is contained in:
bjdys 2021-08-13 15:39:16 +08:00
parent e52f0ed5a4
commit 5ad214a3a3

View File

@ -59,7 +59,7 @@ public class UserDO {
* 一对多 * 一对多
*/ */
@TableField(exist = false) @TableField(exist = false)
@MPJMapping(tag = UserAddressDO.class, thisField = "id", joinField = "userId") @MPJMapping(tag = UserAddressDO.class, thisField = "id", joinField = "pid")
private List<UserDO> childUserList; private List<UserDO> childUserList;
} }
``` ```