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
5ad214a3a3
commit
2080d67d4d
@ -52,7 +52,7 @@ public class UserDO {
|
||||
* 一对一
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@MPJMapping(tag = UserDO.class, thisField = "pid", joinField = "pid")
|
||||
@MPJMapping(tag = UserDO.class, thisField = "pid", joinField = "id")
|
||||
private UserDO pUser;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user