开发者

hibernate - lazy init joined component

开发者 https://www.devze.com 2022-12-24 16:37 出处:网络
I used the mapping solution from this que开发者_Python百科stion to have a joined component. But it make hibernate trigger join query to obtain the component event i use fetch=\"select\" in <join>

I used the mapping solution from this que开发者_Python百科stion to have a joined component. But it make hibernate trigger join query to obtain the component event i use fetch="select" in <join>

Please tell me how can i make the joined component lazy init.

Thank you


By setting fetch="select" you effectively switch off lazy loading. Have you tried without?

0

精彩评论

暂无评论...
验证码 换一张
取 消