JPA: please help understanding “join fetch”

后端 未结 4 718
太阳男子
太阳男子 2021-02-01 08:36

I have the following entity structure: Business --> Campaign --> Promotion, where ONE Business can have MANY Campaigns and ONE Campaign can have MANY Promotions. Both one-to-man

4条回答
  •  半阙折子戏
    2021-02-01 09:01

    1. List can have redundant elements because of the cartesian product and people weren't aware of that, so the hibernate guys started throwing this error to force people to use Set instead of List to avoid this problem. Source 1

提交回复
热议问题