我正在学习 Hibernate JPA 教程,并需要使用 EntityManager。但是当我检查 mvnrepository 时,它显示“已弃用 - 使用 hibernate-core 代替”。显然,我的应用程序需要以 hibernate-entitymanager 作为依赖项才能正常工作(同时使用 hibernate-core 和 hibernate-entitymanager 作为依赖项将无法正常工作)。
有人能帮忙解释一下为什么它被“弃用”吗? https://mvnrepository.com/artifact/org.hibernate/hibernate-entitymanager
有人能帮忙解释一下为什么它被“弃用”吗? https://mvnrepository.com/artifact/org.hibernate/hibernate-entitymanager