Hibernate vs. Apache Torque
Asked Answered
Z

2

5

Can anybody provide detailed advantages and disadvantages of each ORM? First of all I'm interested in things that Hibernate provides, and Torquay not.

Zebedee answered 20/4, 2010 at 6:57 Comment(0)
M
8

Hibernate:

  • is older and more stable
  • implements JPA (incl. JPA 2.0)
  • supports annotations
  • is active

Those should be enough to prefer Hibernate. Torque doesn't have any news since 07 September 2008

Merely answered 20/4, 2010 at 7:0 Comment(0)
O
2

One benefit I see using torque is that you can have of generated code (can also be customized based on the application needs) and fits well if your operations directly map to the database tables. With Torque you don't need to write code for beans/pojos and annotations (most of them are generated). Most of the SQL code are all in the ORM classes. No configurations need to handle POJOs. You can also achieve this by doing reverse engineering with hibernate, but you need to understand how the a bean property is mapped to table column and so on. Yes, hibernate is popular and most used.

Opacity answered 17/4, 2013 at 19:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.