Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Hibernate deprecated?

This morning I was aboard a S-Bahn (German Subway) and I met a fellow student, who works for IBM. What he is doing there is Java EE optimization. I told him about my little project. And he recommended not to use 'oldschool' Hibernate. That's why my question is:

Is Hibernate deprecated? (In combination with Java EE/Web Development)

..or did he just prate..

like image 635
Sven Avatar asked Jul 22 '10 07:07

Sven


People also ask

Is Hibernate criteria deprecated?

Since Hibernate 5.2, the Hibernate Criteria API is deprecated, and new development is focused on the JPA Criteria API. We'll explore how to use Hibernate and JPA to build Criteria Queries.

Is Java Hibernate still used?

JPA and its best-known Hibernate implementation are thus among the most widely used technologies in the JAVA ecosystem today. Thousands of projects exist on GitHub using them. Although so many projects use these technologies, in this article I will try to convince you to stop using them in your next projects.

What is alternative to Hibernate?

MyBatis, Spring, Entity Framework, SQLAlchemy, and Sequelize are the most popular alternatives and competitors to Hibernate.

Which is faster JDBC or Hibernate?

Both Hibernate & JDBC facilitate accessing relational tables with Java code. Hibernate is a more efficient & object-oriented approach for accessing a database. However, it is a bit slower performance-wise in comparison to JDBC.


1 Answers

No, Hibernate is not deprecated.

However, there's now JPA (Java Persistence API), which is a standard API for doing the things that Hibernate does.

Note that JPA is just an interface specification. You'll need something that implements JPA, and Hibernate is one of the implementations of JPA. Besides Hibernate, there are a few others such as EclipseLink (the official reference implementation for JPA) and Apache OpenJPA.

like image 111
Jesper Avatar answered Sep 22 '22 17:09

Jesper