阅读背景:

在分离的对象中进行Hibernate延迟加载

来源:互联网 

I have created a class in which I have set some of it's fields (other entities) to be LAZY loaded. Now I need to use this object after it has been detached from the session, so I obviously need to make sure all the fields that I need are populated before detaching it. I tried just calling the getters to these lazy fields but that didn't seem to work. Anyone have an idea how to force these fields to be loaded?I have created a class in which I have set some




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: