THIHA SOE
THIHA SOE

Reputation: 175

Is Hibernate Criteria API stable for future usage?

I mostly use Hibernate criteria API in my previous project. I found Hibernate criteria Expression is already deprecated!

Is Hibernate Criteria API stable for future usage?

http://docs.jboss.org/hibernate/core/3.3/api/org/hibernate/criterion/Expression.html

Upvotes: 4

Views: 3617

Answers (2)

Alex Gitelman
Alex Gitelman

Reputation: 24732

Well, things do get deprecated. If it's marked as such then don't use it. But if there is no note about deprecation - it's not deprecated. Only fortune teller can tell what happens in future. You can try to read forums and see if there is any discussion but I don't think criteria api is going away or undergo signifficant change.

Upvotes: 0

ManuPK
ManuPK

Reputation: 11839

Its deprecated but they have provided Restrictions instead. But make sure you make the proper choice between HQL and criteria when fetching data in hibernate. I like HQL because its simple, flexible and powerful. Read more about hql here.

Upvotes: 2

Related Questions