mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
OneToOne OneToMany
This commit is contained in:
parent
e52f0ed5a4
commit
5ad214a3a3
@ -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;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user