gpt4 book ai didi

java - Query#scroll() 在 Hibernate 中被弃用是因为什么?

转载 作者:行者123 更新时间:2023-12-01 09:51:02 26 4
gpt4 key购买 nike

我发现Query#scroll()在 Javadoc 中被标记为已弃用。

不幸的是,作者忘记写了,当前的替代方案是什么?

最佳答案

整个界面已被弃用。在 javadoc 的顶部,您将看到它而不是 org.hibernate.Query ,您应该使用(或移动到)org.hibernate.query.Query .

所有方法都应该可以按原样使用,只是接口(interface)最终将被删除,因此您应该转而使用新的方法。

NOTE: Query is deprecated, and slated for removal in 6.0. For the time being we leave all methods defined on Query rather than here because it was previously the public API so we want to leave that unchanged in 5.x. For 6.0 we will move those methods here and then delete that class.

关于java - Query#scroll() 在 Hibernate 中被弃用是因为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37588366/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com