Cannot make a LazyForeignCollection become eager collection

旧巷老猫 提交于 2019-12-06 05:49:08

Lazy collections cannot be used if they have been deserialized.

Interesting problem. First off, that message is only in the LazyForeignCollection class. Is there any chance that the answer1 field used to be lazy and was serialized? Is serialization involved at all? The dao field inside of a ForeignCollection should never be null unless the object has been serialized.

My assumption right now is that you are deserializing a previous version of the class. If this is not the case then I have no idea.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!