Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 聚合根和子实体的加载和查询问题 #33

Open
LDmoxeii opened this issue Nov 15, 2024 · 1 comment
Open

[BUG] 聚合根和子实体的加载和查询问题 #33

LDmoxeii opened this issue Nov 15, 2024 · 1 comment

Comments

@LDmoxeii
Copy link

拥有多个子实体时需要
@onetomany(fetch = FetchType.EAGER),@fetch(FetchMode.SUBSELECT) 或
@onetomany(fetch = FetchType.LAZY),@fetch(FetchMode.JOIN) 配合

@binking338
Copy link
Collaborator

经验证, 实体关联多个 OneToMany 关系时,无论LAZYorEAGER均需要通过@fetch(FetchMode.SUBSELECT)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants