小编Sne*_*neh的帖子

Select few among all the nested entities : SPRING JPA

I have a scenario like below.

Lets say EntityA has three nested entities EntityB, EntityC, EntityD. And all of EntityB, EntityC, EntityD has several nested entities inside them.

But while selecting for EntityA it selects the whole tree of nested entities. Whereas I want to fetch a specific branch. Lets say only EntityA, EntityB and all sub entities of EntityB are to be fetched leaving EntityC and EntityD back then I am not sure how to do that. As …

java spring jpa spring-data-jpa

6
推荐指数
1
解决办法
1267
查看次数

标签 统计

java ×1

jpa ×1

spring ×1

spring-data-jpa ×1