Envers 查询返回惰性结果而不是急切结果
我有一个 Envers 查询,它返回一个惰性结果,尽管该字段是在 hibernate-mapping 中使用lazy="false" 定义的。
我在 Hibernate-Envers 论坛上查了一下,没有找到任何有用的信息。
这就是我所拥有的:
hibernate-mapping -
这是运行时的结果
你知道我做错了什么或者我怎样才能得到真正的对象而不是懒惰的对象吗?
提前致谢。
I have an Envers query that returns a lazy result although the field is defined in hibernate-mapping with lazy="false".
I have looked it up at the Hibernate-Envers forums and didn't find any useful information.
So this is what i have:
hibernate-mapping -
This is the result during run-time
Any idea about what am I doing wrong or how can i get the real object instead of the lazy one?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Envers 不支持预加载。所有的关系都是懒惰的。
来源
Eager loading is not supported by Envers. All relationships are lazy.
Source