user3354205 user3354205 - 6 months ago 71
Java Question

Hibernate Entitymanager - what does it mean by "deprecated - use hibernate-core instead"?

I was following a hibernate jpa tutorial, and I needed to use the entitymanager. But when I checked the mvnrepository, it said "deprecated - use hibernate-core instead". And apparently, my application would not work without hibernate-entitymanager as a dependency (and it would not work with both hibernate-core and hibernate-entitymanager as dependencies).

Can someone help explain why it's "deprecated"?


It's mean that in new version of Hibernate hibernate-entitymanager component is deprecated and all functionality that you need, you can get from hibernate-core component. Link to last version of hibernate-core component in Maven Central Repository here. Add this dependency to your pom.xml file.