user3354205 user3354205 - 3 months ago 26
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"?
https://mvnrepository.com/artifact/org.hibernate/hibernate-entitymanager

Answer

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.

Comments