9

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

2

1 Answer 1

9

It means 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.

1
  • I see now, I tried removing hibernate-entitymanager before but forgot to use the latest version of hibernate-core. That's why it didn't work, and I was confused. It works fine after updating. Aug 1, 2016 at 14:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.