Hibernate Entitymanager - what does it mean "obsolete - use instead of a sleeping kernel"?

I followed the hibernate jpa tutorial and I needed to use entitymanager. But when I checked the mvnrepository, he said "out of date - use sleep mode instead." And, apparently, my application will not work without a hibernate-entitymanager as a dependency (and it will not work with both hibernate-core and hibernate-entitymanager as dependencies).

Can someone explain why it is "out of date"? https://mvnrepository.com/artifact/org.hibernate/hibernate-entitymanager

+6
source share
1 answer

This means that in the new version of Hibernate hibernate-entitymanager component is deprecated and you can get all the functionality you need from the hibernate-core component. A link to the latest hibernate-core component in the Maven Central repository is here . Add this dependency to the pom.xml file.

+6
source

All Articles