我正在关注一个休眠的jpa教程,并且需要使用entitymanager。但是当我检查mvnrepository时,它说“已弃用-改用hibernate-core”。显然,如果没有hibernate-entitymanager作为依赖项,我的应用程序将无法工作(并且将hibernate-core和hibernate-entitymanager作为依赖项都无法工作)。
有人可以帮忙解释为什么它被“弃用”吗?https://mvnrepository.com/artifact/org.hibernate/hibernate-entitymanager
这意味着在新版本的Hibernate hibernate-entitymanager
组件中已弃用,您可以从hibernate-core
组件中获得所需的所有功能。hibernate-core
在此处链接到Maven Central Repository 中组件的最新版本。将此依赖项添加到pom.xml文件。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句