简体   繁体   中英

How to decide runtime fetching type(Eager/Lazy) of nested object List by jpa annotation,

I ve implemented this things by hibernate annotation (@FetchProfile) but now I want to do it by JPA. is there any way to do it??

使用JPA 2.1 Entity Graph您可以在运行时控制获取,请查看此博客此博客以获取更多详细信息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM